libmapper 2.4.12
|
#include <mapper_cpp.h>
Public Member Functions | |
Time (mpr_time time) | |
Time (unsigned long int sec, unsigned long int frac) | |
Time (double seconds) | |
Time () | |
uint32_t | sec () |
Time & | set_sec (uint32_t sec) |
uint32_t | frac () |
Time & | set_frac (uint32_t frac) |
Time & | now () |
operator mpr_time * () | |
operator double () const | |
Time & | operator= (Time &time) |
Time & | operator= (double d) |
Time | operator+ (Time &addend) |
Time | operator- (Time &subtrahend) |
Time & | operator+= (Time &addend) |
Time & | operator+= (double addend) |
Time & | operator-= (Time &subtrahend) |
Time & | operator-= (double subtrahend) |
Time & | operator*= (double multiplicand) |
bool | operator< (Time &rhs) |
bool | operator<= (Time &rhs) |
bool | operator== (Time &rhs) |
bool | operator>= (Time &rhs) |
bool | operator> (Time &rhs) |
bool | operator!= (Time &rhs) |
libmapper uses NTP timetags for communication and synchronization.
|
inline |
Allocate and initialize a Time object.
time | The mpr_time value to copy. |
|
inline |
Allocate and initialize a Time object.
sec | Seconds since January 1, 1900 epoch. |
frac | Fractions of a second. |
|
inline |
|
inline |
Allocate and initialize a Time object to the current time.
|
inline |
Retrieve the fraction part of the Time.
|
inline |
Update to the current time.
|
inline |
Retrieve the value translated to a double.
|
inline |
Cast to mpr_time.
|
inline |
|
inline |
Compound assignment multiplication operator for a Time object and a double.
multiplicand | The multiplicand. |
|
inline |
Compound assignment addition operator for a Time object and a double.
addend | The addend. |
|
inline |
Compound assignment subtraction operator for a Time object and a double.
subtrahend | The subtrahend. |
Compound assignment subtraction operator for Time objects.
subtrahend | The subtrahend. |
|
inline |
|
inline |
|
inline |
Set the value.
d | The value to set. |
|
inline |
|
inline |
|
inline |
|
inline |
Retrieve the seconds part of the Time.
|
inline |