Gazebo Transport

API Reference

14.0.0

A Clock implementation that leverages host OS time APIs. More...

#include <Clock.hh>

Public Member Functions

bool IsReady () const override
 Checks whether the clock is ready to be used or not.
 
std::chrono::nanoseconds Time () const override
 Gets clock time.
 
- Public Member Functions inherited from Clock
virtual ~Clock ()=default
 Virtual destructor.
 

Static Public Member Functions

static WallClockInstance ()
 Returns system wall clock interface.
 

Detailed Description

A Clock implementation that leverages host OS time APIs.

Member Function Documentation

◆ Instance()

static WallClock * Instance ( )
static

Returns system wall clock interface.

Returns
The sole wall clock instance (a singleton)

◆ IsReady()

bool IsReady ( ) const
overridevirtual

Checks whether the clock is ready to be used or not.

Returns
True if clock is ready to be used, false otherwise

Implements Clock.

◆ Time()

std::chrono::nanoseconds Time ( ) const
overridevirtual

Gets clock time.

Returns
Current clock time, in nanoseconds

Implements Clock.


The documentation for this class was generated from the following file: