Exemple #1
0
unsigned long Clock::SystemTime()
{
#ifdef WIN32
	return (unsigned long)GetTickCount64();
#else
	return TickU32();
#endif
}
Exemple #2
0
unsigned long Clock::SystemTime()
{
#ifdef _WIN32
#if WINVER >= 0x0600 && !defined(KNET_ENABLE_WINXP_SUPPORT)
	return (unsigned long)GetTickCount64();
#else
	return (unsigned long)GetTickCount();
#endif
#else
	return TickU32();
#endif
}
Exemple #3
0
unsigned long Clock::SystemTime()
{
#ifdef WIN32
#if WINVER >= 0x0600 /* Vista or newer */ && !defined(MATH_ENABLE_WINXP_SUPPORT)
	return (unsigned long)GetTickCount64();
#else
// We are explicitly building with XP support, so GetTickCount() instead of GetTickCount64 is desired.
#if _MSC_VER >= 1700 // VS2012
#pragma warning(push)
#pragma warning(disable:28159) // warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days.  Code that does not take that into account can loop indefinitely.  GetTickCount64 operates on 64 bit values and does not have that problem
#endif
	return (unsigned long)GetTickCount();
#if _MSC_VER >= 1700 // VS2012
#pragma warning(pop)
#endif

#endif
#else
	return TickU32();
#endif
}