From: Amir Goldstein Date: Tue, 28 Feb 2023 11:53:03 +0000 (+0100) Subject: lib: add NTTIME_[U|m]SEC macros X-Git-Tag: talloc-2.4.1~1566 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb9df8181e32f13f4004183d21b2b00a0149dfad;p=thirdparty%2Fsamba.git lib: add NTTIME_[U|m]SEC macros Signed-off-by: Amir Goldstein Reviewed-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/lib/util/time.h b/lib/util/time.h index 8b61e41ae94..4870c84de62 100644 --- a/lib/util/time.h +++ b/lib/util/time.h @@ -72,6 +72,9 @@ /* 64 bit time (100 nanosec) 1601 - cifs6.txt, section 3.5, page 30, 4 byte aligned */ typedef uint64_t NTTIME; +#define NTTIME_USEC (10UL) +#define NTTIME_MSEC (1000UL * NTTIME_USEC) + /** External access to time_t_min and time_t_max. **/