SourcePro® C++ API Reference Guide

Product Documentation:
   SourcePro C++
Documentation Home
List of all members | Public Member Functions | Static Private Member Functions
RWQETimer Class Reference

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

Detailed Description

Implements a timer mechanism that captures the wall clock, user time and system time that occur while the timer is running.

Constructor & Destructor Documentation

RWQETimer::RWQETimer ( )
inline

Constructs a new timer. The timer does not start running until start() is called.

Member Function Documentation

uint64_t RWQETimer::getElapsedSystemTime ( ) const
inline

The elapsed system time.

uint64_t RWQETimer::getElapsedUserTime ( ) const
inline

The elapsed user time.

uint64_t RWQETimer::getElapsedWallTime ( ) const
inline

The elapsed wall clock time.

void RWQETimer::reset ( )
inline

Reset the timer to 0.

static void RWQETimer::snapshot ( uint64_t *  system,
uint64_t *  user,
uint64_t *  wall 
)
staticprivate

Utility function that returns the current snapshot time point for the requested values with millisecond precision.

void RWQETimer::start ( )
inline

Puts the timer in the "running" state. Time accumulates while in this state.

void RWQETimer::stop ( )
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.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.