Tramway SDK
Classes | Namespaces | Functions
stats.cpp File Reference
#include <framework/stats.h>
#include <framework/core.h>
#include <platform/api.h>
#include <vector>
#include <cassert>

Classes

struct  tram::Stats::SystemStat
 

Namespaces

namespace  tram
 
namespace  tram::Stats
 

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::GetStatUncollated (System::system_t system)
 Returns the uncollated time of a system. More...
 
double tram::Stats::GetStatAverage (System::system_t system)