@@ -27,6 +27,7 @@ int qemu_main(int argc, char **argv, char **envp);
#endif
void qemu_get_timedate(struct tm *tm, int offset);
+/* Returns difference with RTC reference time (in seconds) */
int qemu_timedate_diff(struct tm *tm);
void *qemu_oom_check(void *ptr);
@@ -737,7 +737,7 @@ void qemu_system_vmstop_request(RunState state)
}
/***********************************************************/
-/* RTC reference time/date access */
+/* RTC reference time/date access (in seconds) */
static time_t qemu_ref_timedate(QEMUClockType clock)
{
time_t value = qemu_clock_get_ms(clock) / 1000;
It is not obvious that the qemu_timedate_diff() and qemu_ref_timedate() functions return seconds. Briefly document it. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> --- include/qemu-common.h | 1 + softmmu/vl.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)