s3: we have clock_gettime everywhere, remove ifdefs
[rusty/samba.git] / source3 / include / smbprofile.h
index e9015ffc78b61e3c5e96370ccb19147fe3980e2a..60764794fc54d23f86409a61716a10a88aaeef3a 100644 (file)
@@ -894,8 +894,6 @@ extern bool do_profile_times;
 #define DEC_PROFILE_COUNT(x) profile_p->x--
 #define ADD_PROFILE_COUNT(x,y) profile_p->x += (y)
 
-#if defined(HAVE_CLOCK_GETTIME)
-
 extern clockid_t __profile_clock;
 
 static inline uint64_t profile_timestamp(void)
@@ -911,17 +909,6 @@ static inline uint64_t profile_timestamp(void)
        return (ts.tv_sec * 1000000) + (ts.tv_nsec / 1000); /* usec */
 }
 
-#else
-
-static inline uint64_t profile_timestamp(void)
-{
-       struct timeval tv;
-       GetTimeOfDay(&tv);
-       return (tv.tv_sec * 1000000) + tv.tv_usec;
-}
-
-#endif
-
 /* end of helper macros */
 
 #define DO_PROFILE_INC(x) \