X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Futils%2Fmono-time.h;h=95bda8e530979b740b5b7fa06a99b300031e7ede;hb=1c3ad5e78c23913341c3b0e221b5f19e92cf96e6;hp=294ca1b530a11788bc95119554032e4ea33da97a;hpb=261e0ba03b1220de78dad6882270e7ca14b88069;p=mono.git diff --git a/mono/utils/mono-time.h b/mono/utils/mono-time.h index 294ca1b530a..95bda8e5309 100644 --- a/mono/utils/mono-time.h +++ b/mono/utils/mono-time.h @@ -4,14 +4,22 @@ #include #include +#ifdef HAVE_SYS_TIME_H +#include +#endif + /* Returns the number of milliseconds from boot time: this should be monotonic */ -guint32 mono_msec_ticks (void) MONO_INTERNAL; +guint32 mono_msec_ticks (void); /* Returns the number of 100ns ticks from unspecified time: this should be monotonic */ -gint64 mono_100ns_ticks (void) MONO_INTERNAL; +gint64 mono_100ns_ticks (void); + +/* Returns the number of 100ns ticks since 1/1/1601, UTC timezone */ +gint64 mono_100ns_datetime (void); -/* Returns the number of 100ns ticks since 1/1/1, UTC timezone */ -gint64 mono_100ns_datetime (void) MONO_INTERNAL; +#ifndef HOST_WIN32 +gint64 mono_100ns_datetime_from_timeval (struct timeval tv); +#endif /* Stopwatch class for internal runtime use */ typedef struct {