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:
Liam Mitchell 2018-01-06 00:20:58 +13:00 committed by Jakob Botsch Nielsen
parent 2c85309280
commit 0004bf4a23

View File

@ -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