SDSL: Succinct Data Structure Library
A C++ template library for succinct data structures
 All Classes Namespaces Files Functions Variables Typedefs Friends
Public Member Functions
sdsl::stop_watch Class Reference

A helper class to meassure the time consumption of program pieces. More...

#include <testutils.hpp>

List of all members.

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 ()

Detailed Description

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.


Member Function Documentation

Get the elapsed real time in milliseconds since the first construction of a stop_watch in the current process.

See also:
get_real_time

Get the elapsed system time in milliseconds since the first construction of a stop_watch in the current process.

See also:
get_sys_time

Get the elapsed user time in milliseconds since the first construction of a stop_watch in the current process.

See also:
get_user_time

Get the elapsed real time in milliseconds between start and stop.

See also:
start, stop, get_sys_time, get_user_time

Get the elapsed system time in milliseconds between start and stop.

See also:
start, stop, get_real_time, get_user_time

Get the elapsed user time in milliseconds between start and stop.

See also:
start, stop, get_real_time, get_sys_time

Start the stopwatch.

See also:
stop

Stop the stopwatch.

See also:
start

The documentation for this class was generated from the following file: