summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2010-08-24 11:14:19 +0200
committerBjörn Jacke <bj@sernet.de>2010-08-31 09:07:42 +0200
commit8c6ca6e25a4d33e4f9ae2ef13a3872cd533ba6f6 (patch)
treef50dc3fa86a857c4dd244b2914f4227fc0abe773 /source3/include
parent8589f46b86b8acd0439e1325818cc69f9050240d (diff)
downloadsamba-8c6ca6e25a4d33e4f9ae2ef13a3872cd533ba6f6.tar.gz
samba-8c6ca6e25a4d33e4f9ae2ef13a3872cd533ba6f6.tar.bz2
samba-8c6ca6e25a4d33e4f9ae2ef13a3872cd533ba6f6.zip
s3: we have clock_gettime everywhere, remove ifdefs
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/smbprofile.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/source3/include/smbprofile.h b/source3/include/smbprofile.h
index e9015ffc78..60764794fc 100644
--- a/source3/include/smbprofile.h
+++ b/source3/include/smbprofile.h
@@ -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) \