SD bench: Retain atomic operation.;

This commit is contained in:
Lorenz Meier
2019-01-20 16:19:05 +01:00
parent f21bc89a90
commit 01b7a11255
+1 -1
View File
@@ -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)