Tramway SDK
|
Classes | |
struct | SystemStat |
Enumerations | |
enum | Resource : uint32_t { RESOURCE_VRAM } |
Functions | |
void | Start (System::system_t system) |
Starts counting time spent on a system. More... | |
void | Stop (System::system_t system) |
Stops counting time spent on a system. More... | |
void | Add (Resource resource, size_t ammount) |
Adds an ammount of a resource. More... | |
void | Remove (Resource resource, size_t ammount) |
Removes an ammount of a resource. More... | |
void | Collate () |
Collates all of the time statistics. More... | |
size_t | GetStat (Resource resource) |
Returns the uncollated ammount of a resource. More... | |
double | GetStat (System::system_t system) |
Returns the collated time of a system. More... | |
double | GetStatUncollated (System::system_t system) |
Returns the uncollated time of a system. More... | |
double | GetStatAverage (System::system_t system) |
enum tram::Stats::Resource : uint32_t |
void tram::Stats::Add | ( | Resource | resource, |
size_t | ammount | ||
) |
Adds an ammount of a resource.
void tram::Stats::Collate | ( | ) |
Collates all of the time statistics.
size_t tram::Stats::GetStat | ( | Resource | resource | ) |
Returns the uncollated ammount of a resource.
double tram::Stats::GetStat | ( | System::system_t | system | ) |
Returns the collated time of a system.
double tram::Stats::GetStatAverage | ( | System::system_t | system | ) |
double tram::Stats::GetStatUncollated | ( | System::system_t | system | ) |
Returns the uncollated time of a system.
void tram::Stats::Remove | ( | Resource | resource, |
size_t | ammount | ||
) |
Removes an ammount of a resource.
void tram::Stats::Start | ( | System::system_t | system | ) |
Starts counting time spent on a system.
void tram::Stats::Stop | ( | System::system_t | system | ) |
Stops counting time spent on a system.