From 8c881905579ad07d869fdfa95c43559917abd422 Mon Sep 17 00:00:00 2001 From: David Joseph Date: Tue, 9 Apr 2013 15:17:06 -0400 Subject: [PATCH] regressions: fix printing timevalues in MinGW. --- regressions/ck_stack/validate/pair.c | 4 ++++ regressions/ck_stack/validate/pop.c | 4 ++++ regressions/ck_stack/validate/push.c | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/regressions/ck_stack/validate/pair.c b/regressions/ck_stack/validate/pair.c index f4adae5..c0f1bb1 100644 --- a/regressions/ck_stack/validate/pair.c +++ b/regressions/ck_stack/validate/pair.c @@ -240,6 +240,10 @@ main(int argc, char *argv[]) common_gettimeofday(&etv, NULL); stack_assert(); +#ifdef _WIN32 + printf("%3llu %.6f\n", nthr, TVTOD(etv) - TVTOD(stv)); +#else printf("%3llu %.6lf\n", nthr, TVTOD(etv) - TVTOD(stv)); +#endif return 0; } diff --git a/regressions/ck_stack/validate/pop.c b/regressions/ck_stack/validate/pop.c index 5881bfa..c1f5809 100644 --- a/regressions/ck_stack/validate/pop.c +++ b/regressions/ck_stack/validate/pop.c @@ -260,6 +260,10 @@ main(int argc, char *argv[]) common_gettimeofday(&etv, NULL); stack_assert(); +#ifdef _WIN32 + printf("%3llu %.6f\n", nthr, TVTOD(etv) - TVTOD(stv)); +#else printf("%3llu %.6lf\n", nthr, TVTOD(etv) - TVTOD(stv)); +#endif return 0; } diff --git a/regressions/ck_stack/validate/push.c b/regressions/ck_stack/validate/push.c index 9b5ae7e..a2aa1db 100644 --- a/regressions/ck_stack/validate/push.c +++ b/regressions/ck_stack/validate/push.c @@ -239,6 +239,10 @@ main(int argc, char *argv[]) common_gettimeofday(&etv, NULL); stack_assert(); +#ifdef _WIN32 + printf("%3llu %.6f\n", nthr, TVTOD(etv) - TVTOD(stv)); +#else printf("%3llu %.6lf\n", nthr, TVTOD(etv) - TVTOD(stv)); +#endif return 0; }