21#include <sys/syslog.h>
24#include <sys/resource.h>
40 Timer(
char const * prefix,
size_t interval = 100,
int loglevel = LOG_INFO);
49 std::string
const &
stop(
double * seconds);
52 std::string
const &
stop();
55 std::string
const itsPrefix;
56 size_t const itsInterval;
57 int const itsLogLevel;
60 std::chrono::time_point<std::chrono::steady_clock> itsStartTime;
61 double itsSecs, itsMinSecs, itsMaxSecs;
64 rusage itsStartRusage;
65 std::chrono::time_point<std::chrono::steady_clock> itsStartTimeForCpu;
82 std::string
stop(
double * seconds);
88 std::string
const itsPrefix;
89 std::chrono::time_point<std::chrono::steady_clock> itsStartTime;
Simple one-shot timer class.
void start()
Start a time measurement period.
std::string stop()
Same as the other signature of stop() except does not provide seconds, for python bindings.
std::string const & stop()
Same as the other signature of stop() except does not provide seconds, for python bindings.
void start()
Start a time measurement period.
Main namespace for all JeVois classes and functions.