Loading...
Searching...
No Matches
ompl::time Namespace Reference

Namespace containing time datatypes and time operations. More...

Classes

class  ProgressDisplay
 

Typedefs

using point = std::chrono::system_clock::time_point
 Representation of a point in time.
 
using duration = std::chrono::system_clock::duration
 Representation of a time duration.
 

Functions

point now ()
 Get the current time point.
 
duration seconds (double sec)
 Return the time duration representing a given number of seconds.
 
double seconds (const duration &d)
 Return the number of seconds that a time duration represents.
 
std::string as_string (const point &p)
 Return string representation of point in time.
 

Detailed Description

Namespace containing time datatypes and time operations.

Typedef Documentation

◆ duration

using ompl::time::duration = typedef std::chrono::system_clock::duration

Representation of a time duration.

Definition at line 55 of file Time.h.

◆ point

using ompl::time::point = typedef std::chrono::system_clock::time_point

Representation of a point in time.

Definition at line 52 of file Time.h.

Function Documentation

◆ as_string()

std::string ompl::time::as_string ( const point p)
inline

Return string representation of point in time.

Definition at line 78 of file Time.h.

◆ now()

point ompl::time::now ( )
inline

Get the current time point.

Definition at line 58 of file Time.h.

◆ seconds() [1/2]

double ompl::time::seconds ( const duration d)
inline

Return the number of seconds that a time duration represents.

Definition at line 72 of file Time.h.

◆ seconds() [2/2]

duration ompl::time::seconds ( double  sec)
inline

Return the time duration representing a given number of seconds.

Definition at line 64 of file Time.h.