Tramway SDK
Namespaces | Enumerations | Functions
stats.h File Reference
#include <framework/system.h>
#include <cstddef>

Go to the source code of this file.

Namespaces

namespace  tram
 
namespace  tram::Stats
 

Enumerations

enum  tram::Stats::Resource : uint32_t { tram::Stats::RESOURCE_VRAM }
 

Functions

void tram::Stats::Start (System::system_t system)
 Starts counting time spent on a system. More...
 
void tram::Stats::Stop (System::system_t system)
 Stops counting time spent on a system. More...
 
void tram::Stats::Add (Resource resource, size_t ammount)
 Adds an ammount of a resource. More...
 
void tram::Stats::Remove (Resource resource, size_t ammount)
 Removes an ammount of a resource. More...
 
void tram::Stats::Collate ()
 Collates all of the time statistics. More...
 
size_t tram::Stats::GetStat (Resource resource)
 Returns the uncollated ammount of a resource. More...
 
double tram::Stats::GetStat (System::system_t system)
 Returns the collated time of a system. More...
 
double tram::Stats::GetStatAverage (System::system_t system)
 
double tram::Stats::GetStatUncollated (System::system_t system)
 Returns the uncollated time of a system. More...