hpx::chrono::high_resolution_timer#

Defined in header hpx/chrono.hpp.

See Public API for a list of names and headers that are part of the public HPX API.

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

high_resolution_timer is a timer object which measures the elapsed time

Public Types

enum class init#

Values:

enumerator no_init#

Public Functions

inline high_resolution_timer() noexcept#
inline explicit constexpr high_resolution_timer(init) noexcept#
inline explicit constexpr high_resolution_timer(double t) noexcept#
inline void restart() noexcept#

restarts the timer

inline double elapsed() const noexcept#

returns the elapsed time in seconds

inline std::int64_t elapsed_microseconds() const noexcept#

returns the elapsed time in microseconds

inline std::int64_t elapsed_nanoseconds() const noexcept#

returns the elapsed time in nanoseconds

Public Static Functions

static inline double now() noexcept#

returns the current time

static inline constexpr double elapsed_max() noexcept#

returns the estimated maximum value for elapsed()

static inline constexpr double elapsed_min() noexcept#

returns the estimated minimum value for elapsed()

Protected Static Functions

static inline std::uint64_t take_time_stamp() noexcept#

Private Members

std::uint64_t start_time_#