diff options
Diffstat (limited to 'old/botan/src/timer/win32_query_perf_ctr/tm_win32.cpp')
-rw-r--r-- | old/botan/src/timer/win32_query_perf_ctr/tm_win32.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/old/botan/src/timer/win32_query_perf_ctr/tm_win32.cpp b/old/botan/src/timer/win32_query_perf_ctr/tm_win32.cpp new file mode 100644 index 0000000..6b878e6 --- /dev/null +++ b/old/botan/src/timer/win32_query_perf_ctr/tm_win32.cpp @@ -0,0 +1,23 @@ +/* +* Win32 Timer +* (C) 1999-2007 Jack Lloyd +* +* Distributed under the terms of the Botan license +*/ + +#include <botan/tm_win32.h> +#include <windows.h> + +namespace Botan { + +/* +* Get the timestamp +*/ +u64bit Win32_Timer::clock() const + { + LARGE_INTEGER tv; + ::QueryPerformanceCounter(&tv); + return tv.QuadPart; + } + +} |