libcrn
3.9.5
A document image processing library
|
A class to measure time. More...
#include <CRNTimer.h>
Static Public Member Functions | |
static void | Start () |
Starts the quick stopwatch. More... | |
static double | Stop () |
Stops the quick stopwatch. More... | |
static void | Start (const String &timername) |
Starts a stopwatch. More... | |
static double | Split (const String &timername, const String &splitname) |
Records time in a stopwatch. More... | |
static String | Stats (const String &timername) |
Dumps statistics to a string. More... | |
static void | Destroy (const String &timername) |
Frees a stopwatch. More... | |
A class to measure time.
This class holds stopwatches that can be used in parallel
Definition at line 39 of file CRNTimer.h.
|
static |
Frees a stopwatch.
Frees a stopwatch
[in] | timername | the name of the stopwatch |
Definition at line 125 of file CRNTimer.cpp.
Records time in a stopwatch.
Records time in a stopwatch. Stores a time with a name.
[in] | timername | the name of the stopwatch |
[in] | splitname | the name of the split |
Definition at line 71 of file CRNTimer.cpp.
|
static |
Starts the quick stopwatch.
Starts the quick stopwatch.
Definition at line 136 of file CRNTimer.cpp.
|
static |
Starts a stopwatch.
Starts a stopwatch. Stores the beginning time.
[in] | timername | the name of the stopwatch |
Definition at line 57 of file CRNTimer.cpp.
Dumps statistics to a string.
Dumps statistics to a string. Can be called at any moment in the process.
[in] | timername | the name of the stopwatch |
Definition at line 90 of file CRNTimer.cpp.
|
static |
Stops the quick stopwatch.
Stops the quick stopwatch. Do not call without a Start() before!
Definition at line 146 of file CRNTimer.cpp.