32 std::vector<std::string>
name;
55 bool save(std::string json, std::string path);
A class to store timing statistics.
Definition: Timing.h:14
uint64_t tNow
Current time (POSIX ms).
Definition: Timing.h:20
void update(uint64_t tNow, std::vector< double > time, std::vector< std::string > name)
Update the time differences and names.
Definition: Timing.cpp:17
bool save(std::string json, std::string path)
Append the map to a save file.
Definition: Timing.cpp:50
uint64_t tStart
Start time (POSIX ms).
Definition: Timing.h:17
std::vector< std::string > name
Names of time differences.
Definition: Timing.h:32
uint64_t n
Number of CPI's.
Definition: Timing.h:23
uint64_t uptime
Time since first CPI (ms).
Definition: Timing.h:26
Timing(uint64_t tStart)
Constructor.
Definition: Timing.cpp:11
std::vector< double > time
Time differences (ms).
Definition: Timing.h:29
std::string to_json()
Generate JSON of the map and metadata.
Definition: Timing.cpp:26