OSVR-Core
Functions
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)
 Add a util::time::TimeValue and a std::chrono::duration. More...
 

Detailed Description

Header.

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

Function Documentation

§ operator+()

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).