]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib: add NTTIME_[U|m]SEC macros
authorAmir Goldstein <amir@ctera.com>
Tue, 28 Feb 2023 11:53:03 +0000 (12:53 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 1 Mar 2023 19:55:32 +0000 (19:55 +0000)
Signed-off-by: Amir Goldstein <amir@ctera.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/util/time.h

index 8b61e41ae94a5a01f86a4281cd2cf78ffa8dfee6..4870c84de622d7e6bdb8529aa64b03b43f509124 100644 (file)
@@ -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.
 **/