X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/62f9057c5250b460384dd7d2e10d9b7bb2be3e5d..16e690fe7ead327a86ea287e3e8d60d36f14ef8a:/testsuite/xbt/heap_bench.c diff --git a/testsuite/xbt/heap_bench.c b/testsuite/xbt/heap_bench.c index ea737a9478..5f3e1c40cc 100644 --- a/testsuite/xbt/heap_bench.c +++ b/testsuite/xbt/heap_bench.c @@ -70,7 +70,7 @@ void test_heap_mean_operation(int size) for (i = 0; i < size; i++) xbt_heap_push(heap, NULL, (10.0 * rand() / (RAND_MAX + 1.0))); date = gras_os_time() * 1000000 - date; - printf("Creation time %d size heap : %lg\n", size, date); + printf("Creation time %d size heap : %g\n", size, date); date = gras_os_time() * 1000000; for (j = 0; j < MAX_TEST; j++) { @@ -79,7 +79,7 @@ void test_heap_mean_operation(int size) xbt_heap_push(heap, NULL, 3.0 * val); } date = gras_os_time() * 1000000 - date; - printf("Mean access time for a %d size heap : %lg\n", size, + printf("Mean access time for a %d size heap : %g\n", size, date * 1.0 / (MAX_TEST + 0.0)); xbt_heap_free(heap);