INtime SDK Help
ntxGetRtTimestampCounter

Returns the current value of the INtime timestamp counter.

ULONG64 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 co-ordinated between nodes (in other words they will count at the same rate) but they will not be coordinated (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 0L on failure. To view detailed error information, call ntxGetLastRtError.

Requirements

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