JeVois
1.21
JeVois Smart Embedded Machine Vision Toolkit
|
|
#include <jevois/Debug/Timer.H>
Simple one-shot timer class.
This class reports the time spent between start() and stop(). Typically, this may be useful to report processing time of a neural network, by rendering the string returned by stop() into the video output.
Public Member Functions | |
TimerOne (char const *prefix) | |
Constructor. | |
void | start () |
Start a time measurement period. | |
std::string | stop (double *seconds) |
End a time measurement period, report time spent as: 'prefix: ms (fps)' where % is replaced by values. | |
std::string | stop () |
Same as the other signature of stop() except does not provide seconds, for python bindings. | |
jevois::TimerOne::TimerOne | ( | char const * | prefix | ) |
void jevois::TimerOne::start | ( | ) |
std::string jevois::TimerOne::stop | ( | ) |
std::string jevois::TimerOne::stop | ( | double * | seconds | ) |
End a time measurement period, report time spent as: 'prefix: ms (fps)' where % is replaced by values.
If seconds is not null, it will be set to the instantaneous number of seconds between start() and stop().
Definition at line 156 of file Timer.C.
References jevois::secs2str().