timing

The contents of this module can be included with the header hpx/modules/timing.hpp. These headers may be used by user-code but are not guaranteed stable (neither header location nor contents). You are using these at your own risk. If you wish to use non-public functionality from a module we strongly suggest only including the module header hpx/modules/timing.hpp, not the particular header in which the functionality you would like to use is defined. See Public API for a list of names that are part of the public HPX API.

namespace hpx
namespace chrono
struct high_resolution_clock

Public Static Functions

static std::uint64_t now()
static std::uint64_t() hpx::chrono::high_resolution_clock::min()
static std::uint64_t() hpx::chrono::high_resolution_clock::max()
namespace util

Typedefs

typedef hpx::chrono::steady_duration instead
namespace hpx
namespace chrono
class high_resolution_timer

Public Functions

high_resolution_timer()
high_resolution_timer(double t)
void restart()
double elapsed() const
std::int64_t elapsed_microseconds() const
std::int64_t elapsed_nanoseconds() const
double elapsed_max() const
double elapsed_min() const

Public Static Functions

static double now()

Protected Static Functions

static std::uint64_t take_time_stamp()

Private Members

std::uint64_t start_time_
namespace hpx
namespace util
template<typename T>
struct scoped_timer

Public Functions

scoped_timer(T &t, bool enabled = true)
scoped_timer(scoped_timer const&)
scoped_timer(scoped_timer &&rhs)
~scoped_timer()
scoped_timer &operator=(scoped_timer const &rhs)
scoped_timer &operator=(scoped_timer &&rhs)
bool enabled() const

Private Members

std::uint64_t started_at_
T *t_
namespace hpx
namespace chrono
class steady_duration

Public Functions

steady_duration(value_type const &rel_time)
template<typename Rep, typename Period>
steady_duration(std::chrono::duration<Rep, Period> const &rel_time)
value_type const &value() const
steady_clock::time_point from_now() const

Private Types

typedef steady_clock::duration value_type

Private Members

value_type _rel_time
class steady_time_point

Public Functions

steady_time_point(value_type const &abs_time)
template<typename Clock, typename Duration>
steady_time_point(std::chrono::time_point<Clock, Duration> const &abs_time)
value_type const &value() const

Private Types

typedef steady_clock::time_point value_type

Private Members

value_type _abs_time
namespace hpx
namespace util
class tick_counter

Public Functions

tick_counter(std::uint64_t &output)
~tick_counter()

Protected Static Functions

static std::uint64_t take_time_stamp()

Private Members

const std::uint64_t start_time_
std::uint64_t &output_