Below is the file 'modules/tm_win32/tm_win32.cpp' from this revision. You can also download the file.

/*************************************************
* 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;
   }

}