Files
starruler-linux/source/game/main/profiler.h
T
2018-07-17 14:15:37 +02:00

12 lines
345 B
C++

namespace profiler {
//Returns a value to pass to a call to 'profileEnd'
double profileStart();
//Prints out the time elapsed since 'startTime' as returned by 'profileStart'
void profileEnd(double startTime, const char* section);
#define profile( x, name ) { double _t = profiler::profileStart(); x; profiler::profileEnd(_t, name); }
};