Fix for timing assertion failure when in debug mode

release/4.3a0
Richard Roberts 2012-06-25 03:46:51 +00:00
parent b1dbfab1b3
commit e81a442c96
1 changed files with 1 additions and 0 deletions

View File

@ -172,6 +172,7 @@ void TimingOutline::toc() {
assert(timerActive_);
double elapsed = timer_.elapsed();
add(size_t(elapsed * 1000000.0));
*timerActive_ = false;
#endif
}