[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC][PATCH]Add timestamp to error message
From: |
Laszlo Ersek |
Subject: |
Re: [Qemu-devel] [RFC][PATCH]Add timestamp to error message |
Date: |
Fri, 01 Feb 2013 19:28:05 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130108 Thunderbird/10.0.12 |
Hello Seiji-san,
On 02/01/13 15:53, Seiji Aguchi wrote:
> A logic calculating a time is copied from libvirt, src/util/virtime.c.
> +static void error_print_timestamp(void)
Are gmtime() + strftime() unsuitable for some reason?
Also, since the timestamp is ultimately printed with millisecond
resolution, clock_gettime(CLOCK_REALTIME) could be replaced with the
more portable gettimeofday().
Thanks,
Laszlo