mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-26 09:26:25 +08:00
SD Bench: No need for atomic timing
This leads to less jitter in the benchmark
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user