UtiLite
0.3.1
A lite utilities library
|
#include <UTimer.h>
Public Member Functions | |
void | start () |
void | stop () |
double | elapsed () |
DEPRECATED (double getInterval()) | |
double | restart () |
Static Public Member Functions | |
static double | now () |
This class is used to time some codes (in seconds). On Unix, the resolution is up to microseconds (see gettimeofday()). On Windows, the performance counter is used (see QueryPerformanceCounter() and QueryPerformanceFrequency()). Example:
UTimer::DEPRECATED | ( | double | getInterval() | ) |
This method is used to get the interval time between stop() and the start().
double UTimer::elapsed | ( | ) | [inline] |
double UTimer::now | ( | ) | [static] |
This method is used to get the time of the system right now.
double UTimer::restart | ( | ) | [inline] |
void UTimer::start | ( | ) |
This method starts the timer.
void UTimer::stop | ( | ) |
This method stops the timer.