summaryrefslogtreecommitdiffhomepage
path: root/compat/timer.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-02-01 06:37:47 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-02-01 06:37:47 +0100
commit71f5aac8d639a2fd6f18ae313a9d8784711049f1 (patch)
tree1500a3fbe201fb7ebf974fc1a8ad958f48fcc89b /compat/timer.hpp
parentd00258dfc626000c70767796ccd18fad7815a8d3 (diff)
compat/timer: remove platform-dependent stuff from header
Diffstat (limited to 'compat/timer.hpp')
-rw-r--r--compat/timer.hpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/compat/timer.hpp b/compat/timer.hpp
index a92d3f68..03b537ac 100644
--- a/compat/timer.hpp
+++ b/compat/timer.hpp
@@ -13,23 +13,10 @@
#include <ctime>
-#if defined (_WIN32)
-# include <windows.h>
-#elif defined(__MACH__)
-# include <inttypes.h>
-# include <mach/mach_time.h>
-#endif
-
class OTR_COMPAT_EXPORT Timer final
{
struct timespec state;
long long conv_nsecs(const struct timespec& cur) const;
- static void otr_clock_gettime(struct timespec* ts);
-#ifdef _WIN32
- static LARGE_INTEGER otr_get_clock_frequency();
-#elif defined(__MACH__)
- static mach_timebase_info_data_t otr_get_mach_frequency();
-#endif
static void gettime(struct timespec* state);