OnixS C++ ICE Binary Order Entry Handler 1.1.1
API Documentation
Loading...
Searching...
No Matches
PerformanceCounter.h File Reference

Go to the source code of this file.

Classes

class  PerformanceCounter

Functions

std::ostream & operator<< (std::ostream &os, const PerformanceCounter::Count &value)
bool operator== (const PerformanceCounter::Count &left, const PerformanceCounter::Count &right)
bool operator!= (const PerformanceCounter::Count &left, const PerformanceCounter::Count &right)

Function Documentation

◆ operator!=()

bool operator!= ( const PerformanceCounter::Count & left,
const PerformanceCounter::Count & right )
inline

Definition at line 84 of file PerformanceCounter.h.

85{
86 return !(left == right);
87}

◆ operator<<()

std::ostream & operator<< ( std::ostream & os,
const PerformanceCounter::Count & value )
inline

Definition at line 150 of file PerformanceCounter.h.

151{
152#ifdef _WIN32
153 os << value.HighPart << value.LowPart;
154#else
155 os << '[' << value.tv_sec << '.' << value.tv_nsec << ']';
156#endif
157
158 return os;
159}

◆ operator==()

bool operator== ( const PerformanceCounter::Count & left,
const PerformanceCounter::Count & right )
inline

Definition at line 75 of file PerformanceCounter.h.

76{
77#ifdef _WIN32
78 return (left.LowPart == right.LowPart && left.HighPart == right.HighPart);
79#else
80 return (left.tv_nsec == right.tv_nsec && left.tv_sec == right.tv_sec);
81#endif
82}