开发者

reading the system clock value?

开发者 https://www.devze.com 2023-01-07 01:21 出处:网络
Is there a virtual/system clock runnin开发者_JS百科g 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.

Is there a virtual/system clock runnin开发者_JS百科g 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消