59 #elif defined(__QNX__)
85 m_iTimeType(iTimeType)
102 #elif defined(__QNX__)
126 error(-1,
"copy constructor : method should not be called!");
137 error(-1,
"assignment operator : method should not be called!");
171 warning(
"executionTime() : return 0.0, for you must call 'start()' and 'stop()' first");
179 warning(
"executionTime() : return 0.0, for start time is bigger than stop time and no overflow was detected");
196 #elif defined(_WIN32)
223 #elif defined(_WIN32)
248 #elif defined(_WIN32)
259 warning(
"stop() : you must call 'start()' first");
283 #elif defined(_WIN32)
295 warning(
"cont() : you must call 'start()' and 'stop()' first");
304 #elif defined(_WIN32)
320 #elif defined(_WIN32)
321 warning(
"unkown real time resolution\n");
324 warning(
"unkown real time resolution\n");
335 bool bTimeOutFlag =
false;
337 unsigned int uiSec, uiNSec;
338 uiSec = uiTime / 1000;
339 uiNSec = (uiTime % 1000) * 1000000;
351 while(!bTimeOutFlag);
352 #elif defined(_WIN32)
355 unsigned int uiSec, uiUSec;
356 uiSec = uiTime / 1000;
357 uiUSec = (uiTime % 1000) * 1000;
369 while(!bTimeOutFlag);
382 struct tm *localTime;
385 currentTime = time (NULL);
388 localTime = localtime (¤tTime);
391 strftime (acDate, 256,
"%a %b %d %I:%M:%S %p %Z %Y", localTime);
403 struct tm *localTime;
406 currentTime = time (NULL);
409 localTime = localtime (¤tTime);
412 strftime (acWeekDay, 256,
"%A", localTime);
436 warning(
"testOverflow() : overflow has to be tested only when measuring cpu-time");