blob: 58f7b0f55bd3a4fce47a9bfe581077e49e0834e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/*************************************************
* Win32 Timer Source File *
* (C) 1999-2007 Jack Lloyd *
*************************************************/
#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;
}
}
|