blob: 17cc2432d0ec96e8a026887af5c8bab5864e903c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
Index: src/Canvas.cpp
===================================================================
--- src/Canvas.cpp (revision 5479)
+++ src/Canvas.cpp (revision 5480)
@@ -760,6 +760,18 @@
}
#endif
+inline uint64_t
+get_monotonic_time()
+{
+#if GLIB_CHECK_VERSION(2, 28, 0)
+ return g_get_monotonic_time();
+#else
+ GTimeVal time;
+ g_get_current_time(&time);
+ return time.tv_sec + time.tv_usec;
+#endif
+}
+
#ifdef GANV_FDGL
inline Region
@@ -788,18 +800,6 @@
b->impl->force = vec_sub(b->impl->force, f);
}
-inline uint64_t
-get_monotonic_time()
-{
-#if GLIB_CHECK_VERSION(2, 28, 0)
- return g_get_monotonic_time();
-#else
- GTimeVal time;
- g_get_current_time(&time);
- return time.tv_sec + time.tv_usec;
-#endif
-}
-
gboolean
GanvCanvasImpl::layout_iteration()
{
|