-    gettimeofday(time, 0);
+    if (native_rtc_enabled == 1) {
+        _native_in_syscall++;
+        if (gettimeofday(time, 0) == 0) {
+            errx(1, "rtc_time: gettimeofday: error");
+        }
+        _native_in_syscall--;
+
+    }