mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 01:03:33 +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();
|
hrt_abstime fsync_start = hrt_absolute_time();
|
||||||
fsync(fd);
|
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)
|
void write_test(int fd, uint8_t *block, int block_size)
|
||||||
|
|||||||
Reference in New Issue
Block a user