From 0b148fe3f07746bc9e218406e92d8b557c9acd0a Mon Sep 17 00:00:00 2001 From: ubuntu201711081 <201711081@jbnu.ac.kr> Date: Sun, 6 Dec 2020 05:25:42 +0000 Subject: [PATCH] chg bench readable measure --- client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.c b/client.c index e223ceb..add01d1 100644 --- a/client.c +++ b/client.c @@ -292,7 +292,7 @@ int main(int argc, const char *argv[]){ if (result.tv_sec == 0) avg = result.tv_nsec; else avg = result.tv_sec * 1e9 + result.tv_nsec; avg /= bench.op_count; - fprintf(stdout,"operation: %lf ns/op\n",avg); + fprintf(stdout,"operation: %lf us/op\n",avg / 1000.0); fprintf(stdout,"resolution: %ld sec %ld ns\n",bench.resolution.tv_sec,bench.resolution.tv_nsec); }