From b3bdf83bd823ec2bbc352fd0922a02cfa3db333b Mon Sep 17 00:00:00 2001 From: Mathias Labeyrie Date: Wed, 5 Nov 2014 15:24:47 +0100 Subject: [PATCH] rename some vars --- test/gtx/gtx_fast_trigonometry.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/gtx/gtx_fast_trigonometry.cpp b/test/gtx/gtx_fast_trigonometry.cpp index 051c5d2d..7eaffe77 100644 --- a/test/gtx/gtx_fast_trigonometry.cpp +++ b/test/gtx/gtx_fast_trigonometry.cpp @@ -25,11 +25,11 @@ namespace fastCos{ for(float i=begin; i(time_fastCos)); - std::printf("cos Time %d clocks\n", static_cast(time_cos)); - return time_fastCos < time_cos ? 0 : 1; + const std::clock_t time_fast = timestamp2 - timestamp1; + const std::clock_t time_default = timestamp3 - timestamp2; + std::printf("fastCos Time %d clocks\n", static_cast(time_fast)); + std::printf("cos Time %d clocks\n", static_cast(time_default)); + return time_fast < time_default ? 0 : 1; } }