Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
WilyTiger committed Sep 25, 2024
1 parent ab677ed commit b50d11e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cloud/filestore/tools/testing/open_close_bench/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ int main(int argc, char *argv[]) {
}
clock_gettime(CLOCK_MONOTONIC, &endTime);

openTime = (endTime.tv_sec - startTime.tv_sec) + (endTime.tv_nsec - startTime.tv_nsec) / 1e9;
openTime = (endTime.tv_sec - startTime.tv_sec) +
(endTime.tv_nsec - startTime.tv_nsec) / 1e9;
printf("Open %.6f ms\n", openTime * 1000);
printf("Open avg %.6f ms\n", openTime * 1000 / n);

Expand All @@ -70,7 +71,8 @@ int main(int argc, char *argv[]) {
}
clock_gettime(CLOCK_MONOTONIC, &endTime);

closeTime = (endTime.tv_sec - startTime.tv_sec) + (endTime.tv_nsec - startTime.tv_nsec) / 1e9;
closeTime = (endTime.tv_sec - startTime.tv_sec) +
(endTime.tv_nsec - startTime.tv_nsec) / 1e9;
printf("Close %.6f ms\n", closeTime * 1000);
printf("Close avg %.6f ms\n", closeTime * 1000 / n);

Expand Down

0 comments on commit b50d11e

Please sign in to comment.