40 #ifndef _testdatatools_cpp
41 #define _testdatatools_cpp
52 #ifdef _MEZZ_THREAD_WIN32_
55 #ifdef _MEZZ_THREAD_APPLE_
56 #include <sys/sysctl.h>
69 #ifdef _MEZZ_THREAD_WIN32_
76 LARGE_INTEGER frequency;
79 { QueryPerformanceFrequency(&frequency); }
83 LARGE_INTEGER Current;
84 QueryPerformanceCounter(&Current);
85 return MaxInt(Current.QuadPart * (1000000.0 / frequency.QuadPart));
93 {
return ATimer.GetTimeStamp(); }
96 {
return Whole(ATimer.frequency.QuadPart/1000); }
102 gettimeofday(&Now, NULL);
103 return (Now.tv_sec * 1000000) + Now.tv_usec;
MaxInt GetTimeStamp()
Get a timestamp, in microseconds. This will generally be some multiple of the GetTimeStampResolution ...
TestData, TestDataStorage and UnitTestGroup class definitions.
Whole NowResolution()
Get the resolution of the timestamp in microseconds. This is the smallest amount of time that the Get...
MaxInt Now()
Get a timestamp, in microseconds. This will generally be some multiple of the GetTimeStampResolution ...
A basic timer class to assist in timed operations.
long long MaxInt
A large integer type suitable for compile time math and long term microsecond time keeping...
The bulk of the engine components go in this namspace.
unsigned long Whole
Whole is an unsigned integer, it will be at least 32bits in size.