문제

Is there a virtual/system clock running independently when a computer is booted?

How can we read that value?

도움이 되었습니까?

해결책

Use the RDTSC x86 instruction, it reads the clocks since the system-start.

Edit: On x86-64 targets the use of inline assembly is not possible anymore, use either intrinics or a external linked object file which was generated by an assembler. Do not forget to flush the processor pipeline before using this instruction.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top