roo_quantity
API Documentation for roo_quantity
Loading...
Searching...
No Matches
time.h File Reference
#include <cmath>
#include "roo_flags.h"
#include "roo_logging.h"
#include "roo_time.h"
Include dependency graph for time.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  roo_quantity::Time
 Representation of elapsed, internally stored as floating-point seconds. More...
 

Namespaces

namespace  roo_quantity
 For convenience conversion from roo_time::Duration.
 

Functions

Time roo_quantity::TimeInSeconds (float time)
 Returns a time object equivalent to the specified time expressed in seconds.
 
Time roo_quantity::UnknownTime ()
 Returns a time object representing an unknown time.
 
Time roo_quantity::TimeInMinutes (float time)
 Returns a time object equivalent to the specified time expressed in minutes (60 seconds).
 
Time roo_quantity::TimeInHours (float time)
 Returns a time object equivalent to the specified time expressed in hours (3600 seconds).
 
Time roo_quantity::TimeInMilliseconds (float time)
 Returns a time object equivalent to the specified time expressed in milliseconds.
 
Time roo_quantity::TimeInMicroseconds (float time)
 Returns a time object equivalent to the specified time expressed in microseconds.
 
Time roo_quantity::TimeInNanoseconds (float time)
 Returns a time object equivalent to the specified time expressed in nanoseconds.
 
Time roo_quantity::operator+ (Time a, Time b)
 
Time roo_quantity::operator- (Time a, Time b)
 
Time roo_quantity::operator- (Time a)
 
Time roo_quantity::operator* (Time a, float b)
 
Time roo_quantity::operator* (float a, Time b)
 
Time roo_quantity::operator/ (Time a, float b)
 
float roo_quantity::operator/ (Time a, Time b)
 
roo_logging::Stream & roo_quantity::operator<< (roo_logging::Stream &os, const Time &val)