[time] Allow system clock to be adjusted at runtime
authorMichael Brown <mcb30@ipxe.org>
Mon, 13 Jun 2016 14:29:05 +0000 (15:29 +0100)
committerMichael Brown <mcb30@ipxe.org>
Mon, 13 Jun 2016 14:29:05 +0000 (15:29 +0100)
commite6111c151794c4c15a0988e259666ef5be24ffcc
tree6e4febac53299a9ecbf4bff3c0a5dd676de75094
parent02d5cfff22e3796f3ecf0b4b93519f952223fd89
[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 <mcb30@ipxe.org>
src/core/time.c
src/include/ipxe/time.h
src/include/time.h