INtime SDK Help
GetRtTimestampCounter
INtime SDK v7 > About INtime > INtime Kernel > Time management > GetRtTimestampCounter

Returns the current value of the INtime timestamp counter.

QWORD GetRtTimestampCounter( VOID );

Remarks

The INtime timestamp counter has different sources depending on the hardware configuration of the platform. If the HPET facility is available that source is used by default since it is a single counter source of known frequency and accessible from every node on the platform. If the HPET facility is not available then the CPU timestamp counter is used. In the case of the CPU timestamp counter the values may be coordinated between nodes (in other words they will count at the same rate) but they will not be synchronous (they will not have exactly the same starting value).

This call returns the period of the configured timestamp counter, in counter increments. The period of a counter increment is returned by the GetRtTimestampInfo call, in femtoseconds.

Return Values

The current value of the INtime timestamp counter, or 0 on failure. This call is not expected to fail.

Requirements

Versions Defined in Include Link to
INtime 4.2 intime/rt/include/rtbase.h rt.h rt.lib
See Also