summaryrefslogtreecommitdiffhomepage
path: root/compat/timer-resolution.hpp
blob: 5db877c0bea7279dbf998598163a1629df675945 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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