diff --git a/test/gtx/gtx_fast_trigonometry.cpp b/test/gtx/gtx_fast_trigonometry.cpp index d3787708..a4f7f8e6 100644 --- a/test/gtx/gtx_fast_trigonometry.cpp +++ b/test/gtx/gtx_fast_trigonometry.cpp @@ -33,12 +33,33 @@ namespace fastCos{ } } +namespace fastSin{ + 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("sin 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(); return Error; }