actuator 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ext/actuator/clock.c +6 -3
- data/lib/actuator.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5221697bd2bc28373a921d4f06f746b4c32d9aa8
|
|
4
|
+
data.tar.gz: 6e8297351ccbfe0194b46576ae589b4c0dfd29df
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e4af0f03391b99b46c49a6026271d47e30f235d991ffe18994293d3f92a28a8b986c9c2b4ce9729d099f5e303f5e6f06724319827024d0c0c3482ee009bfa6b9
|
|
7
|
+
data.tar.gz: e6f7d7e8416253884f78d04df608d5320849e2dc9818e50981f22d4a2f3f02adde6339e59510e0c414baeb2a0d98de7191ddb0b070cc14b02f9db262ba31e7a3
|
data/ext/actuator/clock.c
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
#include "clock.h"
|
|
3
3
|
#include "debug.h"
|
|
4
4
|
|
|
5
|
-
#if !defined(__APPLE__) && !defined(_WIN32)
|
|
5
|
+
#if !defined(__APPLE__) && !defined(__MACH__) && !defined(_WIN32)
|
|
6
6
|
#define HAVE_POSIX_TIMER
|
|
7
7
|
#include <time.h>
|
|
8
8
|
#ifdef CLOCK_MONOTONIC
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#endif
|
|
13
13
|
#endif
|
|
14
14
|
|
|
15
|
-
#
|
|
15
|
+
#if defined(__APPLE__) || defined(__MACH__)
|
|
16
16
|
#define HAVE_MACH_TIMER
|
|
17
17
|
#include <mach/mach_time.h>
|
|
18
18
|
#endif
|
|
@@ -20,12 +20,15 @@
|
|
|
20
20
|
#if defined(_WIN32) || defined(_MSC_VER)
|
|
21
21
|
#define HAVE_WIN32_TIMER
|
|
22
22
|
#include <windows.h>
|
|
23
|
-
|
|
24
23
|
#ifdef _MSC_VER
|
|
25
24
|
#include <Strsafe.h>
|
|
26
25
|
#endif
|
|
27
26
|
#endif
|
|
28
27
|
|
|
28
|
+
#if !defined(HAVE_POSIX_TIMER) && !defined(HAVE_MACH_TIMER) && !defined(HAVE_WIN32_TIMER)
|
|
29
|
+
#error Only Windows, Linux and OSX are supported
|
|
30
|
+
#endif
|
|
31
|
+
|
|
29
32
|
static uint64_t last_count;
|
|
30
33
|
static uint64_t frequency;
|
|
31
34
|
|
data/lib/actuator.rb
CHANGED