A class to store timing statistics.
More...
#include <Timing.h>
A class to store timing statistics.
- Author
- 30hours
◆ Timing()
| Timing::Timing |
( |
uint64_t |
tStart | ) |
|
Constructor.
- Parameters
-
| tStart | Start time (POSIX ms). |
- Returns
- The object.
◆ save()
| bool Timing::save |
( |
std::string |
json, |
|
|
std::string |
path |
|
) |
| |
Append the map to a save file.
- Parameters
-
| json | JSON string of map and metadata. |
| path | Path of file to save. |
- Returns
- True is save is successful.
◆ to_json()
| std::string Timing::to_json |
( |
| ) |
|
Generate JSON of the map and metadata.
- Returns
- JSON string.
◆ update()
| void Timing::update |
( |
uint64_t |
tNow, |
|
|
std::vector< double > |
time, |
|
|
std::vector< std::string > |
name |
|
) |
| |
Update the time differences and names.
- Parameters
-
| tNow | Current time (POSIX ms). |
| time | Vector of time differences (ms). |
| name | Vector of time difference names. |
- Returns
- Void.
◆ name
| std::vector<std::string> Timing::name |
|
private |
Names of time differences.
◆ time
| std::vector<double> Timing::time |
|
private |
◆ tNow
◆ tStart
◆ uptime
Time since first CPI (ms).
The documentation for this class was generated from the following files: