Sane C++ Libraries
C++ Platform Abstraction Libraries
SC::Time::Relative Struct Reference

Interval of time represented with 64 bit double precision float. More...

#include <Time.h>

Public Member Functions

 Relative ()
 how many seconds have elapsed in More...
 
Milliseconds inRoundedUpperMilliseconds () const
 Converts current time to Milliseconds, rounding to upper integer. More...
 
Seconds inSeconds () const
 

Static Public Member Functions

static Relative fromSeconds (double seconds)
 Construct a Relative from seconds. More...
 

Detailed Description

Interval of time represented with 64 bit double precision float.

Constructor & Destructor Documentation

◆ Relative()

SC::Time::Relative::Relative ( )
inline

how many seconds have elapsed in

Member Function Documentation

◆ fromSeconds()

static Relative SC::Time::Relative::fromSeconds ( double  seconds)
inlinestatic

Construct a Relative from seconds.

Parameters
secondsA double representing an interval of time in seconds
Returns
A Relative representing the given interval in seconds

◆ inRoundedUpperMilliseconds()

Milliseconds SC::Time::Relative::inRoundedUpperMilliseconds ( ) const
inline

Converts current time to Milliseconds, rounding to upper integer.

Returns
An Milliseconds struct holding the time converted to milliseconds

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