From eb280d6cd86a3c3e16480c5bdae5351fc3dba666 Mon Sep 17 00:00:00 2001 From: Walter Bright Date: Wed, 17 Mar 2010 08:37:07 +0000 Subject: [PATCH] random updates --- std/perf.d | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/std/perf.d b/std/perf.d index 825813b99..ca4b276fd 100644 --- a/std/perf.d +++ b/std/perf.d @@ -94,10 +94,15 @@ version(Windows) interval_t freq; if (QueryPerformanceFrequency(&freq)) + { sm_freq = freq; + sm_fn = &_qpc; + } else + { sm_freq = 1000; - sm_fn = &_qtc; + sm_fn = &_qtc; + } } public: