No cast in SampleInterfaces BuildContext::doStopTimer (#299)
Removed int cast because it led to loss of time data. Fixes #289
This commit is contained in:
parent
2c85309280
commit
0004bf4a23
@ -68,7 +68,7 @@ void BuildContext::doStartTimer(const rcTimerLabel label)
|
||||
void BuildContext::doStopTimer(const rcTimerLabel label)
|
||||
{
|
||||
const TimeVal endTime = getPerfTime();
|
||||
const int deltaTime = (int)(endTime - m_startTime[label]);
|
||||
const TimeVal deltaTime = endTime - m_startTime[label];
|
||||
if (m_accTime[label] == -1)
|
||||
m_accTime[label] = deltaTime;
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user