From 1ce38894986b239e476f72d38bf4df9f0c1947fd Mon Sep 17 00:00:00 2001 From: fanyang-mono Date: Tue, 14 Apr 2020 14:30:14 -0400 Subject: [PATCH] Add place holder function for pc to make pc build pass --- src/mono/mono/utils/mono-time.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/mono/mono/utils/mono-time.c b/src/mono/mono/utils/mono-time.c index e03efae..0767221 100644 --- a/src/mono/mono/utils/mono-time.c +++ b/src/mono/mono/utils/mono-time.c @@ -249,7 +249,7 @@ mono_clock_get_time_ns (void) return ((guint64) mach_ts.tv_sec * 1000000000) + (guint64) mach_ts.tv_nsec; } -#else +#elseif defined(HOST_LINUX) static clockid_t sampling_posix_clock; @@ -264,4 +264,13 @@ mono_clock_get_time_ns (void) return ((guint64) ts.tv_sec * 1000000000) + (guint64) ts.tv_nsec; } +#else + +guint64 +mono_clock_get_time_ns (void) +{ + // TODO: need to implement time stamp function for PC + return 0; +} + #endif -- 2.7.4