mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 19:50:38 +08:00
Removed Timer
This commit is contained in:
parent
d7f0b9de25
commit
b7a19a9a5f
@ -66,19 +66,4 @@ std::string FloatToString ( float Number );
|
||||
// Converts a given integer to a string
|
||||
std::string IntToString ( int Number );
|
||||
|
||||
class Timer
|
||||
{
|
||||
public:
|
||||
Timer();
|
||||
void start() { tstart = (double)clock()/CLOCKS_PER_SEC; }
|
||||
void stop() { tstop = (double)clock()/CLOCKS_PER_SEC; }
|
||||
void reset() { tstart = 0; tstop = 0;}
|
||||
|
||||
double getTimeMilli() const { return (tstop-tstart)*1000; }
|
||||
double getTimeSec() const { return tstop-tstart; }
|
||||
|
||||
private:
|
||||
double tstart, tstop, ttime;
|
||||
};
|
||||
|
||||
#endif /* UTILS_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user