diff options
Diffstat (limited to 'compat/timer-resolution.hpp')
-rw-r--r-- | compat/timer-resolution.hpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/compat/timer-resolution.hpp b/compat/timer-resolution.hpp new file mode 100644 index 00000000..5db877c0 --- /dev/null +++ b/compat/timer-resolution.hpp @@ -0,0 +1,19 @@ +#pragma once + +#if defined _WIN32 +# include "export.hpp" + +class OTR_COMPAT_EXPORT timer_resolution final +{ + unsigned long old_value; + +public: + timer_resolution(int msecs); + ~timer_resolution(); +}; +#else +struct timer_resolution final +{ + inline timer_resolution(int) {} +}; +#endif |