JCL Help:ReadTimeStampCounter

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Reads the time stamp counter.


Pascal

 function ReadTimeStampCounter: Int64;


Return Value

The current value of the time stamp counter.


Description

The ReadTimeStampCounter function reads and returns the current value of the time stamp counter. The time-stamp counter counts CPU clocks from the time the processor is reset, where it is initialized to an unknown count. This is a 64 bit count and therefore it can accumulate counts for almost 2500 years (based on a 200MHz processor) before a rollover occurs. You may want to consider inlining this instruction as opposed to calling this function. If you do, the resulting 64 bit integer containing the count is returned in the combination EDX:EAX.


About

Unit

JclSysInfo


Donator

Azret Botash


Notes

This instruction is only available on Pentium (and higher) processors.


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page