summaryrefslogtreecommitdiff
path: root/src/faketime_common.h
diff options
context:
space:
mode:
authorBalint Reczey <balint@balintreczey.hu>2013-08-28 11:49:48 +0200
committerBalint Reczey <balint@balintreczey.hu>2013-08-28 14:41:49 +0200
commit77eb2531367c6ed974e80e2a42294eac09bf77d5 (patch)
tree86402c1e10c0f093051c6a4bba8ca367c5b21e1c /src/faketime_common.h
parent7931cd180cf29df7c23b30bdaee944cab7446793 (diff)
downloadlibfaketime-77eb2531367c6ed974e80e2a42294eac09bf77d5.tar.gz
Start system time from the same global clocks in every processes after replaying a file
Diffstat (limited to 'src/faketime_common.h')
-rw-r--r--src/faketime_common.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/faketime_common.h b/src/faketime_common.h
index c8ee3c9..3284c70 100644
--- a/src/faketime_common.h
+++ b/src/faketime_common.h
@@ -24,6 +24,16 @@
#include <stdint.h>
+struct system_time_s {
+ /** System time according to CLOCK_REALTIME */
+ struct timespec real;
+ /** System time according to CLOCK_MONOTONIC */
+ struct timespec mon;
+ /** System time according to CLOCK_MONOTONIC_RAW */
+ struct timespec mon_raw;
+};
+
+
/** Data shared among faketime-spawned processes */
struct ft_shared_s {
/**
@@ -32,6 +42,8 @@ struct ft_shared_s {
uint64_t ticks;
/** Index of timstamp to be loaded from file */
uint64_t file_idx;
+ /** System time Faketime started at */
+ struct system_time_s start_time;
};
#endif