MCPcopy Create free account
hub / github.com/bumptop/BumpTop / startTimer

Method startTimer

trunk/win/Source/BT_StatsManager.cpp:114–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114void StatsManager::startTimer( float& persistentData )
115{
116 int addrKey = (int)&persistentData;
117
118 // check if we are already timing this value, if so, then we should throw an error
119 // XXX: currently we don't allow hierarchical timing
120 hash_map<int, StopwatchInSeconds>::const_iterator iter = _timers.find(addrKey);
121 if (iter == _timers.end())
122 {
123 // start the timer otherwise
124 _timers[addrKey].restart();
125 }
126}
127
128void StatsManager::finishTimer( float& persistentData )
129{

Callers 6

WinMainFunction · 0.80
Key_EnableSlideShowFunction · 0.80
ScopedStatsTimerMethod · 0.80
messageProcMethod · 0.80
startResizeTimerMethod · 0.80

Calls 3

findMethod · 0.45
endMethod · 0.45
restartMethod · 0.45

Tested by

no test coverage detected