diff --git a/test/gtx/gtx_fast_trigonometry.cpp b/test/gtx/gtx_fast_trigonometry.cpp index a4f7f8e6..ff65878b 100644 --- a/test/gtx/gtx_fast_trigonometry.cpp +++ b/test/gtx/gtx_fast_trigonometry.cpp @@ -54,12 +54,35 @@ namespace fastSin{ } } +namespace fastTan{ + int perf() + { + const float begin = -glm::pi(); + const float end = glm::pi(); + float result = 0.f; + const std::clock_t timestamp1 = std::clock(); + for (float i = begin; i(time_fast)); + std::printf("tan Time %d clocks\n", static_cast(time_default)); + return time_fast < time_default ? 0 : 1; + } +} + + int main() { int Error(0); Error += ::fastCos::perf(); Error += ::fastSin::perf(); + Error += ::fastTan::perf(); return Error; }