$NetBSD: patch-am,v 1.3 2011/07/02 22:19:30 dholland Exp $ - LP64 fixes --- Amaya/thotlib/base/testcase.c~ 2007-04-25 03:25:54.000000000 -0400 +++ Amaya/thotlib/base/testcase.c 2008-09-08 05:34:11.000000000 -0400 @@ -208,9 +208,9 @@ void TtaStopBenchmarkTimer( int bench_id FILE *fp = g_benchmark_timer[bench_id].fp; if (fp) { - fprintf (fp, "[%s] Stop timer\tElapsed time=%ld ms.\n", + fprintf (fp, "[%s] Stop timer\tElapsed time=%u ms.\n", g_benchmark_timer[bench_id].name, - (g_benchmark_timer[bench_id].time-g_benchmark_timer[bench_id].start_time)/(CLOCKS_PER_SEC/1000)); + (g_benchmark_timer[bench_id].time-g_benchmark_timer[bench_id].start_time)*1000/CLOCKS_PER_SEC); TtaWriteClose(fp); } @@ -236,10 +236,10 @@ void TtaSetBenchmarkMark( int bench_id, FILE *fp = g_benchmark_timer[bench_id].fp; if (fp) { - fprintf (fp, "[%s] %s\tElapsed time=%ld ms\tDelta time=%ld ms.\n", + fprintf (fp, "[%s] %s\tElapsed time=%u ms\tDelta time=%u ms.\n", g_benchmark_timer[bench_id].name, mark_name, - (g_benchmark_timer[bench_id].time-g_benchmark_timer[bench_id].start_time)/(CLOCKS_PER_SEC/1000), - (g_benchmark_timer[bench_id].time-last_time)/(CLOCKS_PER_SEC/1000)); + (g_benchmark_timer[bench_id].time-g_benchmark_timer[bench_id].start_time)*1000/CLOCKS_PER_SEC, + (g_benchmark_timer[bench_id].time-last_time)*1000/CLOCKS_PER_SEC); } }