time-win32.cpp revision a595bebfc109f595e64e843f8faf9cfb97f35564
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * innotek Portable Runtime - Time, win32.
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * Copyright (C) 2006-2007 innotek GmbH
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * available from http://www.virtualbox.org. This file is free software;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * you can redistribute it and/or modify it under the terms of the GNU
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * General Public License as published by the Free Software Foundation,
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * distribution. VirtualBox OSE is distributed in the hope that it will
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * be useful, but WITHOUT ANY WARRANTY of any kind.
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync/*******************************************************************************
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync* Header Files *
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync*******************************************************************************/
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync//#define USE_TICK_COUNT
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync//#define USE_PERFORMANCE_COUNTER
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync//#define USE_INTERRUPT_TIME
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync extern "C" {
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync return (uint64_t)GetTickCount() * (uint64_t)1000000;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync static unsigned uMult;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync return (uint64_t)GetTickCount() * (uint64_t)1000000;
if (!s_pUserSharedData)
return rtTimeGetSystemNanoTS();
return rtTimeGetSystemNanoTS();
if (pTime)
return pTime;
if (pTime)
return pTime;