aboutsummaryrefslogtreecommitdiffstats
path: root/modules/tm_win32/tm_win32.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/tm_win32/tm_win32.cpp')
-rw-r--r--modules/tm_win32/tm_win32.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/modules/tm_win32/tm_win32.cpp b/modules/tm_win32/tm_win32.cpp
new file mode 100644
index 000000000..1f4a33bf4
--- /dev/null
+++ b/modules/tm_win32/tm_win32.cpp
@@ -0,0 +1,21 @@
+/*************************************************
+* Win32 Timer Source File *
+* (C) 1999-2006 The Botan Project *
+*************************************************/
+
+#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;
+ }
+
+}