logging: record timestamp for each thread
authorVincent Fu <vincent.fu@samsung.com>
Wed, 24 Jan 2024 17:38:18 +0000 (17:38 +0000)
committerVincent Fu <vincent.fu@samsung.com>
Tue, 13 Feb 2024 16:44:43 +0000 (11:44 -0500)
commitd09dcd34db7bdff65bb31d4055f5823898d9e629
treead6591254c66d9ef2f00f2aa21d45c7abf2cc350
parent097af663e93f86106f32580bfa59e68fae007035
logging: record timestamp for each thread

Instead of recording a timestamp once before iterating through all the
threads to check if we should add a new bw or iops log measurement,
record a new timestamp before checking each thread.

We were already querying the time anyway for the mtime_since_now() call.
We might as well have it available locally for more accurate logging.

Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
stat.c