RealTime represents time values to nanosecond precision with accurate arithmetic and frame-rate conversion functions.
More...
#include <vamp-sdk/RealTime.h>
Detailed Description
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.
Constructor & Destructor Documentation
Vamp::RealTime::RealTime |
( |
| ) |
|
|
inline |
Vamp::RealTime::RealTime |
( |
int |
s, |
|
|
int |
n |
|
) |
| |
Vamp::RealTime::RealTime |
( |
const RealTime & |
r | ) |
|
|
inline |
Member Function Documentation
int Vamp::RealTime::usec |
( |
| ) |
const |
|
inline |
int Vamp::RealTime::msec |
( |
| ) |
const |
|
inline |
static RealTime Vamp::RealTime::fromSeconds |
( |
double |
sec | ) |
|
|
static |
static RealTime Vamp::RealTime::fromMilliseconds |
( |
int |
msec | ) |
|
|
static |
static RealTime Vamp::RealTime::fromTimeval |
( |
const struct timeval & |
| ) |
|
|
static |
RealTime Vamp::RealTime::operator- |
( |
| ) |
const |
|
inline |
bool Vamp::RealTime::operator< |
( |
const RealTime & |
r | ) |
const |
|
inline |
bool Vamp::RealTime::operator> |
( |
const RealTime & |
r | ) |
const |
|
inline |
bool Vamp::RealTime::operator== |
( |
const RealTime & |
r | ) |
const |
|
inline |
bool Vamp::RealTime::operator!= |
( |
const RealTime & |
r | ) |
const |
|
inline |
bool Vamp::RealTime::operator>= |
( |
const RealTime & |
r | ) |
const |
|
inline |
bool Vamp::RealTime::operator<= |
( |
const RealTime & |
r | ) |
const |
|
inline |
RealTime Vamp::RealTime::operator/ |
( |
int |
d | ) |
const |
double Vamp::RealTime::operator/ |
( |
const RealTime & |
r | ) |
const |
Return the ratio of two times.
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)
Referenced by printFeatures().
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.
static long Vamp::RealTime::realTime2Frame |
( |
const RealTime & |
r, |
|
|
unsigned int |
sampleRate |
|
) |
| |
|
static |
Convert a RealTime into a sample frame at the given sample rate.
static RealTime Vamp::RealTime::frame2RealTime |
( |
long |
frame, |
|
|
unsigned int |
sampleRate |
|
) |
| |
|
static |
Member Data Documentation
The documentation for this class was generated from the following file: