Disambiguate operator<< for optimer (#8532)
This commit is contained in:
parent
8974d04147
commit
5b05815d5c
1 changed files with 3 additions and 3 deletions
|
@ -92,10 +92,10 @@ private:
|
|||
*
|
||||
* @note The resulting output does <b>not</b> include a time unit suffix.
|
||||
*/
|
||||
template<typename OpTimerType>
|
||||
inline std::ostream& operator<<(std::ostream& o, const OpTimerType& tm)
|
||||
template<typename... OpTimerArgs>
|
||||
inline std::ostream& operator<<(std::ostream& o, const optimer<OpTimerArgs...>& tm)
|
||||
{
|
||||
o << std::chrono::duration_cast<typename OpTimerType::resolution>(tm.elapsed()).count();
|
||||
o << std::chrono::duration_cast<typename optimer<OpTimerArgs...>::resolution>(tm.elapsed()).count();
|
||||
return o;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue