1e-3 -> 1e3

pull/5199/head
theodore 9 years ago
parent 6d68f72473
commit 9449af8ada
  1. 4
      samples/gpu/tick_meter.hpp

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

Loading…
Cancel
Save