Timer designed to calculate the timings within scope.
More...
#include <scoped_timer.h>
Timer designed to calculate the timings within scope.
◆ scoped_timer() [1/2]
scoped_timer::scoped_timer |
( |
std::string |
master_name = "" , |
|
|
std::string |
secondary_name = "" |
|
) |
| |
Cnstructor.
- Parameters
-
[in] | master_name | Master name. |
[in] | secondary_name | Secondary name. |
◆ scoped_timer() [2/2]
scoped_timer::scoped_timer |
( |
const credit * |
cr, |
|
|
std::string |
secondary_name = "" |
|
) |
| |
Constructor.
- Parameters
-
[in] | cr | Poiter to an instance of credit. |
[in] | secondary_name | Secondary name. |
◆ stock()
std::string scoped_timer::stock |
( |
std::string |
subname = "" | ) |
|
Stop recording time and return time string.
- Parameters
-
- Returns
- Human readable timing information.
◆ tock()
double scoped_timer::tock |
( |
std::string |
subname = "" | ) |
|
Stop recording time.
- Parameters
-
- Returns
- Time in milliseconds.
The documentation for this class was generated from the following file: