26 #define _CRT_SECURE_NO_WARNINGS     44   const time_t t = sysclock::to_time_t(p);
    85   printf(
"Elapsed time %0.1f sec, CPU time %0.1f sec\n", 
    93 #if defined(_MSC_VER) //Windows and Visual Studio     97     const DWORD pid = GetCurrentProcessId(); 
    98     HANDLE hp = OpenProcess(PROCESS_QUERY_INFORMATION, FALSE, pid); 
   101       FILETIME ft0, ft1, ft2; 
   104       if(GetProcessTimes(hp, &ft0, &ft1, &ft2, &ftUser))
   105         llCNS = *((
UINT64*)&ftUser);  
   110     return UINT(llCNS/10000ULL); 
   118     return UINT(1000.0*(
double)(clock())/CLOCKS_PER_SEC);
 std::chrono::time_point< sysclock > systime_point
System time point.
 
const char * GetCurrentDateAndTime()
Get current time and date.
 
systime_point m_tpElapsedTimeStart
Clock time.
 
uint64_t UINT64
Typedef of UINT64 for *NIX.
 
UINT CPUTime()
Platform independent CPU time.
 
const char * GetDateAndTime(const systime_point p)
Get time and date.
 
const char * GetStartDateAndTime()
Get start time and date.
 
void Start()
Start timing.
 
Header for the timer CTimer.
 
unsigned int UINT
Abbreviation for unsigned integer.
 
float GetCPUTime()
Get CPU time in seconds.
 
void Finish()
Print CPU and elapsed time.
 
std::string m_strTimeAndDate
Container for time and date string.
 
float GetElapsedTime()
Get elapsed time in seconds.
 
float m_fCPUTimeStart
CPU time in seconds.