0ad/source/lib/sysdep/win/whrt/whrt.h
janwas 52ae284a7e new timer code (esp. HPET) now operational. TSC still disabled pending calibration code.
add update mechanism (needed to safely handle counter rollover) and
lock-free synchronization.

refactor:
. Counters now have Activate/Shutdown interface rather than throwing
exceptions from the ctor.
. whrt is responsible for caching frequency/resolution etc.
. fix counterBits handling

This was SVN commit r5105.
2007-05-28 09:25:38 +00:00

18 lines
451 B
C

/**
* =========================================================================
* File : whrt.h
* Project : 0 A.D.
* Description : Windows High Resolution Timer
* =========================================================================
*/
// license: GPL; see lib/license.txt
#ifndef INCLUDED_WHRT
#define INCLUDED_WHRT
extern double whrt_Resolution();
extern double whrt_Time();
#endif // #ifndef INCLUDED_WHRT