All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
timing.h File Reference

High-resolution, low-cost timing routines. More...

+ Include dependency graph for timing.h:

Go to the source code of this file.

Macros

#define ARCH_CLK_TCK   100
 Macro that defines the clocks per second. More...
 

Functions

uint64_t ArchGetTickTime ()
 Return the current time in system-dependent units. More...
 
ARCH_API int64_t ArchTicksToNanoseconds (uint64_t nTicks)
 Convert a duration measured in "ticks", as returned by ArchGetTickTime(), to nanoseconds. More...
 
ARCH_API double ArchTicksToSeconds (uint64_t nTicks)
 Convert a duration measured in "ticks", as returned by ArchGetTickTime(), to seconds. More...
 
ARCH_API uint64_t ArchSecondsToTicks (double seconds)
 Convert a duration in seconds to "ticks", as returned by ArchGetTickTime(). More...
 
ARCH_API double ArchGetNanosecondsPerTick ()
 Get nanoseconds per tick. More...
 

Detailed Description

High-resolution, low-cost timing routines.

Definition in file timing.h.