All of lore.kernel.org
 help / color / mirror / Atom feed
* fio Windows Time
@ 2017-07-26 23:45 Jeff Furlong
  2017-07-28  6:31 ` Sitsofe Wheeler
  0 siblings, 1 reply; 2+ messages in thread
From: Jeff Furlong @ 2017-07-26 23:45 UTC (permalink / raw)
  To: fio

Hi All,
When fio prints a summary output in Linux, the timestamp appears correct with the Linux system date/time.  However, on Windows, the time reported seems to be incorrect (wrong time zone)?

    test_job: (groupid=0, jobs=1): err= 0: pid=1928: Tue Jul 25 21:24:23 2017

It looks like the fio timestamp is reported by stat.c, show_thread_status_normal():

    memset(time_buf, 0, sizeof(time_buf));
    
    time(&time_p);
    os_ctime_r((const time_t *) &time_p, time_buf, sizeof(time_buf));

    if (!ts->error) {
        log_buf(out, "%s: (groupid=%d, jobs=%d): err=%2d: pid=%d: %s",
            ts->name, ts->groupid, ts->members,
            ts->error, (int) ts->pid, time_buf);

Is there a better way to query system time on Windows platforms?  Thanks.

Regards,
Jeff


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-07-28  6:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-26 23:45 fio Windows Time Jeff Furlong
2017-07-28  6:31 ` Sitsofe Wheeler

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.