From e6111c151794c4c15a0988e259666ef5be24ffcc Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 13 Jun 2016 15:29:05 +0100 Subject: [time] Allow system clock to be adjusted at runtime Provide a mechanism to allow an arbitrary adjustment to be applied to all subsequent calls to time(). Note that the underlying clock source (e.g. the RTC clock) will not be changed; only the time as reported within iPXE will be affected. Signed-off-by: Michael Brown --- src/core/time.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/core/time.c') diff --git a/src/core/time.c b/src/core/time.c index 29a924ebe..c353ac5bd 100644 --- a/src/core/time.c +++ b/src/core/time.c @@ -43,6 +43,9 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); * 400. */ +/** Current system clock offset */ +signed long time_offset; + /** Days of week (for debugging) */ static const char *weekdays[] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" -- cgit v1.2.3-55-g7522