Skip to content

Commit

Permalink
SD Bench: No need for atomic timing
Browse files Browse the repository at this point in the history
This leads to less jitter in the benchmark
  • Loading branch information
LorenzMeier committed Jan 22, 2019
1 parent bca0f79 commit 502cd98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/systemcmds/sd_bench/sd_bench.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 502cd98

Please sign in to comment.