s3-profile: add PROFILE_TIMESTAMP macro
authorUri Simchoni <uri@samba.org>
Mon, 28 Mar 2016 07:13:50 +0000 (10:13 +0300)
committerJeremy Allison <jra@samba.org>
Mon, 28 Mar 2016 18:45:16 +0000 (20:45 +0200)
commitb2ae298526185076d123fe866406ee3719a9e3e8
tree73c3fb2f8999253efd60412855bd6eb0f60f01b3
parentf1c84e49dbd3ba792dbc7386505b03a4545437fb
s3-profile: add PROFILE_TIMESTAMP macro

This is a get-timestamp macro which works only when
profiling is enabled in the build. The underlying
clock_gettime_mono() function can be costly on some
architectures and we want to avoid it if it's not
necessary.

Signed-off-by: Uri Simchoni <uri@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/include/smbprofile.h