fio Windows Time

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
To unsubscribe from this list: send the line "unsubscribe fio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux