1
0
forked from 0ad/0ad

improve timer detection logic and document time-source disable macros

This was SVN commit r571.
This commit is contained in:
janwas 2004-06-19 22:53:14 +00:00
parent 62f3945116
commit 6891ca6e1f

View File

@ -30,6 +30,11 @@
#include <numeric>
// define to disable time sources (useful for simulating other systems)
// #define NO_QPC
// #define NO_TSC
#pragma data_seg(".LIB$WIA")
WIN_REGISTER_FUNC(wtime_init);
#pragma data_seg(".LIB$WTA")
@ -211,7 +216,9 @@ static int choose_impl()
//
// GTC
//
if(1)
safe = true;
SAFETY_OVERRIDE(HRT_GTC);
if(safe)
{
hrt_impl = HRT_GTC;
hrt_nominal_freq = 1000;