Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
Timing Namespace Reference

Classes

struct  Timer
 

Functions

void logTimer (const char *context, Timer &timer)
 
void logRatePerSecond (const char *context, Timer &timer, F64 numerator, const char *numeratorUnit)
 

Function Documentation

◆ logRatePerSecond()

void Timing::logRatePerSecond ( const char * context,
Timer & timer,
F64 numerator,
const char * numeratorUnit )
inline

Definition at line 29 of file Timing.h.

30 {
31 Log::printf(Log::Category::metrics,"%s in %.2fms (%f %s/s)\n",
32 context,
33 timer.getMilliseconds(),
34 numerator / timer.getSeconds(),
35 numeratorUnit
36 );
37 }
LOGGING_API void printf(Category category, const char *format,...)
Definition Logging.cpp:30
F64 getSeconds()
Definition Timing.h:20
F64 getMilliseconds()
Definition Timing.h:19
Here is the call graph for this function:
Here is the caller graph for this function:

◆ logTimer()

void Timing::logTimer ( const char * context,
Timer & timer )
inline

Definition at line 28 of file Timing.h.

28{ Log::printf(Log::Category::metrics,"%s in %.2fms\n",context,timer.getMilliseconds()); }
Here is the call graph for this function:
Here is the caller graph for this function: