25 #ifndef INCLUDED_JSONTimestamp_h_GUID_F8E6C4C6_5A2F_4DA3_E633_68824AD1ABAF
26 #define INCLUDED_JSONTimestamp_h_GUID_F8E6C4C6_5A2F_4DA3_E633_68824AD1ABAF
32 #include <json/value.h>
39 static const char SECONDS_KEY[] =
"seconds";
40 static const char USECONDS_KEY[] =
"microseconds";
42 Json::Value val = Json::objectValue;
43 val[SECONDS_KEY] = Json::Value(Json::Int64(ts.
seconds));
49 ts.
seconds = val[SECONDS_KEY].asInt64();
57 #endif // INCLUDED_JSONTimestamp_h_GUID_F8E6C4C6_5A2F_4DA3_E633_68824AD1ABAF
Header providing a C++ wrapper around TimeValueC.h.
OSVR_TimeValue_Microseconds microseconds
Microseconds portion of the time value.
Standardized, portable parallel to struct timeval for representing both absolute times and time inter...
Json::Value toJson(Eigen::QuaternionBase< Derived > const &quat)
Converts quaternions to JSON objects.
OSVR_TimeValue_Seconds seconds
Seconds portion of the time value.