OSVR-Core  0.6-1962-g59773924
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
TimeValueChrono.h File Reference

Header. More...

#include <osvr/Util/TimeValue.h>
#include <chrono>

Go to the source code of this file.

Functions

template<typename Rep , typename Period >
OSVR_TimeValue operator+ (OSVR_TimeValue const &tv, std::chrono::duration< Rep, Period > const &additionalTime)
 

Detailed Description

Header.

Date
2016
Author
Sensics, Inc. http://sensics.com/osvr

Definition in file TimeValueChrono.h.

Function Documentation

template<typename Rep , typename Period >
OSVR_TimeValue operator+ ( OSVR_TimeValue const &  tv,
std::chrono::duration< Rep, Period > const &  additionalTime 
)
inline

Add a util::time::TimeValue and a std::chrono::duration

NB: Can't have this in the usual namespaces because TimeValue is actually a typedef for the (un-namespaced) C struct, so ADL doesn't go looking in those namespaces, just in std:: and std::chrono:: (because of the second argument).

Definition at line 45 of file TimeValueChrono.h.