Commit 06cfd0d8 authored by Simon Giesecke's avatar Simon Giesecke

Problem: unclear why QueryPerformanceFrequency is called for every call of QueryPerformanceCounter

Solution: add a comment
parent 97ba02bc
......@@ -141,6 +141,9 @@ uint64_t zmq::clock_t::now_us ()
#if defined ZMQ_HAVE_WINDOWS
// Get the high resolution counter's accuracy.
// While QueryPerformanceFrequency only needs to be called once, since its
// value does not change during runtime, we query it here since this is a
// static function. It might make sense to cache it, though.
LARGE_INTEGER ticks_per_second;
QueryPerformanceFrequency (&ticks_per_second);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment