Typedefs | Functions
fcl::time Namespace Reference

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

Typedefs

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

Functions

FCL_EXPORT point now (void)
 Get the current time point. More...
 
FCL_EXPORT double seconds (const duration &d)
 Return the number of seconds that a time duration represents. More...
 
FCL_EXPORT duration seconds (double sec)
 Return the time duration representing a given number of seconds. More...
 

Detailed Description

Namespace containing time datatypes and time operations.

Typedef Documentation

◆ duration

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

Representation of a time duration.

Definition at line 55 of file time.h.

◆ point

using fcl::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

◆ now()

point fcl::time::now ( void  )

Get the current time point.

Definition at line 47 of file time.cpp.

◆ seconds() [1/2]

double fcl::time::seconds ( const duration d)

Return the number of seconds that a time duration represents.

Definition at line 61 of file time.cpp.

◆ seconds() [2/2]

duration fcl::time::seconds ( double  sec)

Return the time duration representing a given number of seconds.

Definition at line 53 of file time.cpp.



fcl
Author(s):
autogenerated on Tue Dec 5 2023 03:40:51