summaryrefslogtreecommitdiffstats
path: root/src/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/rt_time.C9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/runtime/rt_time.C b/src/runtime/rt_time.C
index a5d00157e..e222a3718 100644
--- a/src/runtime/rt_time.C
+++ b/src/runtime/rt_time.C
@@ -33,3 +33,12 @@ void nanosleep(uint64_t sec, uint64_t nsec)
}
}
+int clock_gettime(clockid_t i_clkId, timespec_t* o_tp)
+{
+ int l_rc = -1;
+ if (g_hostInterfaces && g_hostInterfaces->clock_gettime)
+ {
+ l_rc = g_hostInterfaces->clock_gettime(i_clkId, o_tp);
+ }
+ return l_rc;
+}
OpenPOWER on IntegriCloud