Skip to content
Snippets Groups Projects
Commit 01b7a112 authored by Lorenz Meier's avatar Lorenz Meier
Browse files

SD bench: Retain atomic operation.;

parent f21bc89a
No related branches found
No related tags found
No related merge requests found
......@@ -157,7 +157,7 @@ unsigned int time_fsync(int fd)
{
hrt_abstime fsync_start = hrt_absolute_time();
fsync(fd);
return hrt_elapsed_time(&fsync_start) / 1000;
return hrt_elapsed_time_atomic(&fsync_start) / 1000;
}
void write_test(int fd, uint8_t *block, int block_size)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment