Open source Star Ruler 2 source code!
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
|
||||
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); }
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user