aboutsummaryrefslogtreecommitdiff
path: root/reftable/system.h
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2026-04-02 09:31:17 +0200
committerJunio C Hamano <gitster@pobox.com>2026-04-02 10:45:43 -0700
commitcb0882de1979522b2fc3dc4c3064b0ad21d50b06 (patch)
treef7469680d2cddd98eeea1955d934555ca1d4347b /reftable/system.h
parentaa8938573050e6ab44a46e3b9f26c0e442f835aa (diff)
downloadgit-cb0882de1979522b2fc3dc4c3064b0ad21d50b06.tar.xz
reftable/system: add abstraction to retrieve time in milliseconds
We directly call gettimeofday(3p), which may not be available on some platforms. Provide the infrastructure to let projects easily use their own implementations of this function. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'reftable/system.h')
-rw-r--r--reftable/system.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/reftable/system.h b/reftable/system.h
index a7eb6acd4a..071bfa3d58 100644
--- a/reftable/system.h
+++ b/reftable/system.h
@@ -111,4 +111,7 @@ int flock_release(struct reftable_flock *l);
*/
int flock_commit(struct reftable_flock *l);
+/* Report the time in milliseconds. */
+uint64_t reftable_time_ms(void);
+
#endif