#include <Timer.hpp>
Allow calculation of Timer spent in a portion of the code
Public Member Functions | |
Timer () | |
Timer (const Timer &m) | |
Timer & | operator= (const Timer &m) |
virtual | ~Timer () |
void | reset () |
void | displayIntervalSeconds (const String &title="", int expected_time=-1, bool flag_reset=true) |
double | getIntervalSeconds (bool flag_reset=true) |
void | displayIntervalMilliseconds (const String &title="", int expected_time=-1, bool flag_reset=true) |
double | getIntervalMilliseconds (bool flag_reset=true) |
Static Public Member Functions | |
static void | displaySeconds (const String &title, double sec, int expected_time=-1) |
static void | displayMilliseconds (const String &title, double msec, int expected_time=-1) |
Timer::Timer | ( | ) |
Timer::Timer | ( | const Timer & | m | ) |
|
virtual |
void Timer::displayIntervalMilliseconds | ( | const String & | title = "" , |
int | expected_time = -1 , |
||
bool | flag_reset = true |
||
) |
Displays the time elapsed (in ms) since the reference Timer
title | Title used for the internal display |
expected_time | Expected number of milliseconds (-1 if not used) |
flag_reset | True if the Reference must be set to current Time |
void Timer::displayIntervalSeconds | ( | const String & | title = "" , |
int | expected_time = -1 , |
||
bool | flag_reset = true |
||
) |
Displays the time elapsed (in s) since the reference Timer
title | Title used for the internal display |
expected_time | Expected number of seconds (-1 if not used) |
flag_reset | True if the Reference must be set to current Time |
|
static |
|
static |
double Timer::getIntervalMilliseconds | ( | bool | flag_reset = true | ) |
double Timer::getIntervalSeconds | ( | bool | flag_reset = true | ) |