SDSL: Succinct Data Structure Library
A C++ template library for succinct data structures
|
A helper class to meassure the time consumption of program pieces. More...
#include <testutils.hpp>
Public Member Functions | |
void | start () |
Start the stopwatch. | |
void | stop () |
Stop the stopwatch. | |
double | get_user_time () |
Get the elapsed user time in milliseconds between start and stop. | |
double | get_sys_time () |
Get the elapsed system time in milliseconds between start and stop. | |
double | get_real_time () |
Get the elapsed real time in milliseconds between start and stop. | |
uint64_t | get_abs_user_time () |
Get the elapsed user time in milliseconds since the first construction of a stop_watch in the current process. | |
uint64_t | get_abs_sys_time () |
Get the elapsed system time in milliseconds since the first construction of a stop_watch in the current process. | |
uint64_t | get_abs_real_time () |
Get the elapsed real time in milliseconds since the first construction of a stop_watch in the current process. | |
uint64_t | get_abs_page_faults () |
A helper class to meassure the time consumption of program pieces.
stop_watch is a stopwatch based on the commands getrusage and gettimeofday. Where getrusage is used to determine the user and system time and gettimeofday to determine the elapsed real time.
uint64_t sdsl::stop_watch::get_abs_real_time | ( | ) |
Get the elapsed real time in milliseconds since the first construction of a stop_watch in the current process.
uint64_t sdsl::stop_watch::get_abs_sys_time | ( | ) |
Get the elapsed system time in milliseconds since the first construction of a stop_watch in the current process.
uint64_t sdsl::stop_watch::get_abs_user_time | ( | ) |
Get the elapsed user time in milliseconds since the first construction of a stop_watch in the current process.
double sdsl::stop_watch::get_real_time | ( | ) |
Get the elapsed real time in milliseconds between start and stop.
double sdsl::stop_watch::get_sys_time | ( | ) |
Get the elapsed system time in milliseconds between start and stop.
double sdsl::stop_watch::get_user_time | ( | ) |
Get the elapsed user time in milliseconds between start and stop.
void sdsl::stop_watch::start | ( | ) |
Start the stopwatch.
void sdsl::stop_watch::stop | ( | ) |
Stop the stopwatch.