aboutsummaryrefslogtreecommitdiffstats
path: root/modules/tm_win32/tm_win32.cpp
blob: 5bb39b750dd7935e89e3bd9a4268eee100680e28 (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-2008 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;
   }

}