5#include <sys/resource.h>
47 clock_gettime(CLOCK_REALTIME, &
end);
64 return nanos / 1000000;
Get the execution between a block of code.
struct timespec _startTime
void start()
Manually sets the start time.
static constexpr int64_t NanosecondsPerSecond
int64_t nanoseconds() const
Return the number of nanoseconds elapsed since the start of the timer.
Timer()
Initialize a Timer with the current time.
double seconds() const
Return the number of seconds elapsed since the start of the timer.
std::string toString() const
Return the number of seconds elapsed since the start of the timer as a string.
void end()
Manually sets the end time.
int64_t milliseconds() const
Return the number of nanoseconds elapsed since the start of the timer.
std::string to_string(bb::avm2::ValueTag tag)