Header providing a C++ wrapper around TimeValueC.h. More...
#include <osvr/Util/TimeValueC.h>
#include <osvr/Util/TimeValue_fwd.h>
#include <iomanip>
#include <sstream>
Go to the source code of this file.
Namespaces | |
osvr | |
The main namespace for all C++ elements of the framework, internal and external. | |
osvr::util | |
The Util library: Functionality not necessarily coupled to any particular core library, serving more as a common base layer behind all systems. | |
osvr::util::time | |
Functionality related to time and the OSVR_TimeValue abstraction.Note that this is for C API-bordering areas. For purely C++ code, please use std::chrono for your time needs. | |
Typedefs | |
typedef ::OSVR_TimeValue | osvr::util::time::TimeValue |
C++-friendly typedef for the OSVR_TimeValue structure. | |
Functions | |
void | osvr::util::time::getNow (TimeValue &tv) |
Set the given TimeValue to the current time. | |
TimeValue | osvr::util::time::getNow () |
Get a TimeValue for the current time. | |
double | osvr::util::time::duration (TimeValue const &a, TimeValue const &b) |
Get a double containing seconds between the time points. More... | |
std::string | osvr::util::time::toDecimalString (TimeValue tv) |
Converts to a precise decimal string. | |
void | osvr::util::time::toStructTimeval (struct timeval &dest, TimeValue const &src) |
Convert a TimeValue to a struct timeval. | |
void | osvr::util::time::fromStructTimeval (TimeValue &dest, struct timeval const &src) |
Convert a struct timeval to a TimeValue. | |
TimeValue | osvr::util::time::toTimeValue (struct timeval const &src) |
Convert a struct timeval to a TimeValue. | |
TimeValue | osvr::util::time::fromStructTimeval (struct timeval const &src) |
Convert a struct timeval to a TimeValue. | |