bug fix fro the TickMeter class

This commit is contained in:
theodore 2015-08-15 14:12:40 +02:00
parent 56cdd6f14f
commit 6d68f72473

View File

@ -26,9 +26,9 @@ std::ostream& operator << (std::ostream& out, const TickMeter& tm);
TickMeter::TickMeter() { reset(); }
int64 TickMeter::getTimeTicks() const { return sumTime; }
double TickMeter::getTimeMicro() const { return (double)getTimeTicks()/cv::getTickFrequency(); }
double TickMeter::getTimeMilli() const { return getTimeMicro()*1e-3; }
double TickMeter::getTimeSec() const { return getTimeMilli()*1e-3; }
double TickMeter::getTimeMicro() const { return getTimeMilli()*1e-3;}
double TickMeter::getTimeMilli() const { return getTimeSec()*1e-3; }
double TickMeter::getTimeSec() const { return (double)getTimeTicks()/cv::getTickFrequency();}
int64 TickMeter::getCounter() const { return counter; }
void TickMeter::reset() {startTime = 0; sumTime = 0; counter = 0; }