janwas
52ae284a7e
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.
18 lines
451 B
C
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
|