aboutsummaryrefslogtreecommitdiff
path: root/reftable/system.c
diff options
context:
space:
mode:
Diffstat (limited to 'reftable/system.c')
-rw-r--r--reftable/system.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/reftable/system.c b/reftable/system.c
index 4d7e366b55..cd76e56be8 100644
--- a/reftable/system.c
+++ b/reftable/system.c
@@ -4,6 +4,7 @@
#include "basics.h"
#include "reftable-error.h"
#include "../lockfile.h"
+#include "../trace.h"
#include "../tempfile.h"
#include "../write-or-die.h"
@@ -137,3 +138,8 @@ int reftable_fsync(int fd)
{
return fsync_component(FSYNC_COMPONENT_REFERENCE, fd);
}
+
+uint64_t reftable_time_ms(void)
+{
+ return getnanotime() / 1000000;
+}