Skip to content

Commit

Permalink
From patchwork series 437335
Browse files Browse the repository at this point in the history
  • Loading branch information
Fox Snowpatch committed Dec 18, 2024
1 parent 2dd0957 commit 6dff50d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/testing/selftests/powerpc/benchmarks/gettimeofday.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ static int test_gettimeofday(void)
gettimeofday(&tv_end, NULL);
}

timersub(&tv_start, &tv_end, &tv_diff);
timersub(&tv_end, &tv_start, &tv_diff);

printf("time = %.6f\n", tv_diff.tv_sec + (tv_diff.tv_usec) * 1e-6);

Expand Down

0 comments on commit 6dff50d

Please sign in to comment.