MRPT  1.9.9
mrpt::Clock Class Reference

Detailed Description

Clock that is compatible with MRPT TTimeStamp representation.

Definition at line 19 of file Clock.h.

#include <mrpt/core/Clock.h>

Public Types

using rep = int64_t
 
using period = std::ratio< 1, 10000000 >
 
using duration = std::chrono::duration< rep, period >
 
using time_point = std::chrono::time_point< Clock >
 

Static Public Member Functions

static time_point now () noexcept
 Returns the current time, with the highest resolution available. More...
 
static time_point fromDouble (const double t) noexcept
 Create a timestamp from its double representation. More...
 

Static Public Attributes

static constexpr bool is_steady = std::chrono::system_clock::is_steady
 

Member Typedef Documentation

◆ duration

using mrpt::Clock::duration = std::chrono::duration<rep, period>

Definition at line 25 of file Clock.h.

◆ period

using mrpt::Clock::period = std::ratio<1, 10000000>

Definition at line 24 of file Clock.h.

◆ rep

Definition at line 22 of file Clock.h.

◆ time_point

using mrpt::Clock::time_point = std::chrono::time_point<Clock>

Definition at line 26 of file Clock.h.

Member Function Documentation

◆ fromDouble()

mrpt::Clock::time_point mrpt::Clock::fromDouble ( const double  t)
staticnoexcept

◆ now()

mrpt::Clock::time_point mrpt::Clock::now ( )
staticnoexcept

Returns the current time, with the highest resolution available.

Typically this is better than 1 microsecond.

Definition at line 46 of file Clock.cpp.

References getCurrentTime().

Referenced by mrpt::system::getCurrentTime(), mrpt::slam::CMetricMapBuilderICP::initialize(), mrpt::system::now(), and TEST().

Member Data Documentation

◆ is_steady

constexpr bool mrpt::Clock::is_steady = std::chrono::system_clock::is_steady
static

Definition at line 28 of file Clock.h.




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020