RealTime represents time values to nanosecond precision with accurate arithmetic and frame-rate conversion functions.
More...
#include <vamp-sdk/RealTime.h>
RealTime represents time values to nanosecond precision with accurate arithmetic and frame-rate conversion functions.
Definition at line 66 of file vamp-sdk/RealTime.h.
◆ RealTime() [1/3]
Vamp::RealTime::RealTime |
( |
| ) |
|
|
inline |
◆ RealTime() [2/3]
Vamp::RealTime::RealTime |
( |
int | s, |
|
|
int | n ) |
◆ RealTime() [3/3]
Vamp::RealTime::RealTime |
( |
const RealTime & | r | ) |
|
|
inline |
◆ usec()
int Vamp::RealTime::usec |
( |
| ) |
const |
|
inline |
◆ msec()
int Vamp::RealTime::msec |
( |
| ) |
const |
|
inline |
◆ fromSeconds()
static RealTime Vamp::RealTime::fromSeconds |
( |
double | sec | ) |
|
|
static |
◆ fromMilliseconds()
static RealTime Vamp::RealTime::fromMilliseconds |
( |
int | msec | ) |
|
|
static |
◆ fromTimeval()
static RealTime Vamp::RealTime::fromTimeval |
( |
const struct timeval & | | ) |
|
|
static |
◆ operator=()
◆ operator+()
◆ operator-() [1/2]
◆ operator-() [2/2]
RealTime Vamp::RealTime::operator- |
( |
| ) |
const |
|
inline |
◆ operator<()
bool Vamp::RealTime::operator< |
( |
const RealTime & | r | ) |
const |
|
inline |
◆ operator>()
bool Vamp::RealTime::operator> |
( |
const RealTime & | r | ) |
const |
|
inline |
◆ operator==()
bool Vamp::RealTime::operator== |
( |
const RealTime & | r | ) |
const |
|
inline |
◆ operator!=()
bool Vamp::RealTime::operator!= |
( |
const RealTime & | r | ) |
const |
|
inline |
◆ operator>=()
bool Vamp::RealTime::operator>= |
( |
const RealTime & | r | ) |
const |
|
inline |
◆ operator<=()
bool Vamp::RealTime::operator<= |
( |
const RealTime & | r | ) |
const |
|
inline |
◆ operator/() [1/2]
RealTime Vamp::RealTime::operator/ |
( |
int | d | ) |
const |
◆ operator/() [2/2]
double Vamp::RealTime::operator/ |
( |
const RealTime & | r | ) |
const |
Return the ratio of two times.
◆ toString()
std::string Vamp::RealTime::toString |
( |
| ) |
const |
Return a human-readable debug-type string to full precision (probably not a format to show to a user directly)
◆ toText()
std::string Vamp::RealTime::toText |
( |
bool | fixedDp = false | ) |
const |
Return a user-readable string to the nearest millisecond in a form like HH:MM:SS.mmm.
◆ realTime2Frame()
static long Vamp::RealTime::realTime2Frame |
( |
const RealTime & | r, |
|
|
unsigned int | sampleRate ) |
|
static |
◆ frame2RealTime()
static RealTime Vamp::RealTime::frame2RealTime |
( |
long | frame, |
|
|
unsigned int | sampleRate ) |
|
static |
◆ sec
◆ nsec
◆ zeroTime
The documentation for this class was generated from the following file: