fsck.f2fs: report real wall time
authorWei Wang <wvw@google.com>
Mon, 9 Mar 2020 19:54:27 +0000 (12:54 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 19 Mar 2020 01:07:13 +0000 (18:07 -0700)
commit36053752e8f8f7ee4ff9cb1b1d96098a62f44010
treeb28ba7d9eed7226cd674c1589ce20d1ec038b06d
parent2b1dd732480f3b1d9549165cf57e6becd014977c
fsck.f2fs: report real wall time

clock_t time is per-process time, which is not wall time. For example,
if the CPU is shared by other processes, clock_t time may advance slower
than wall clock. On the other hand, if the current process is
multithreaded and more than one execution core is available, clock_t
time may advance faster than wall clock.

this CL changes it to use CLOCK_BOOTTIME (Linux-specific)

Signed-off-by: Wei Wang <wvw@google.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fsck/main.c