SourcePro® C++ 2016 |
SourcePro® C++ API Reference Guide |
Product Documentation: SourcePro C++ Documentation Home |
#include <rw/rwtest/perf/RWQETimer.h>
Public Member Functions | |
RWQETimer () | |
uint64_t | getElapsedSystemTime () const |
uint64_t | getElapsedUserTime () const |
uint64_t | getElapsedWallTime () const |
void | reset () |
void | start () |
void | stop () |
Static Private Member Functions | |
static void | snapshot (uint64_t *system, uint64_t *user, uint64_t *wall) |
Implements a timer mechanism that captures the wall clock, user time and system time that occur while the timer is running.
|
inline |
Constructs a new timer. The timer does not start running until start() is called.
|
inline |
The elapsed system time.
|
inline |
The elapsed user time.
|
inline |
The elapsed wall clock time.
|
inline |
Reset the timer to 0.
|
staticprivate |
Utility function that returns the current snapshot time point for the requested values with millisecond precision.
|
inline |
Puts the timer in the "running" state. Time accumulates while in this state.
|
inline |
Puts the timer in the "stopped" state. Time does not accumulate while in this state.
Copyright © 2016 Rogue Wave Software, Inc. All Rights Reserved. |