mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
SD Bench: No need for atomic timing
This leads to less jitter in the benchmark
This commit is contained in:
parent
bca0f7925c
commit
502cd987ee
@ -157,7 +157,7 @@ unsigned int time_fsync(int fd)
|
||||
{
|
||||
hrt_abstime fsync_start = hrt_absolute_time();
|
||||
fsync(fd);
|
||||
return hrt_elapsed_time_atomic(&fsync_start) / 1000;
|
||||
return hrt_elapsed_time(&fsync_start) / 1000;
|
||||
}
|
||||
|
||||
void write_test(int fd, uint8_t *block, int block_size)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user