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.

Header hpx/timing/high_resolution_clock.hpp

namespace hpx
namespace util
struct high_resolution_clock
#include <high_resolution_clock.hpp>

Public Static Functions

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

Header hpx/timing/high_resolution_timer.hpp

namespace hpx
namespace util
class high_resolution_timer
#include <high_resolution_timer.hpp>

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_

Header hpx/timing/scoped_timer.hpp

namespace hpx
namespace util
template<typename T>
struct scoped_timer
#include <scoped_timer.hpp>

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_

Header hpx/timing/steady_clock.hpp

namespace hpx
namespace util
class steady_duration
#include <steady_clock.hpp>

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
#include <steady_clock.hpp>

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

Header hpx/timing/tick_counter.hpp

namespace hpx
namespace util
class tick_counter
#include <tick_counter.hpp>

Public Functions

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

Protected Static Functions

static std::uint64_t take_time_stamp()

Private Members

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