Commit d91869fa authored by LEFEBVREJP email's avatar LEFEBVREJP email
Browse files

Updating radixbug Timer to expose Timer class even if RADIX_TIMER is not enabled.

parent bac369b0
Pipeline #8045 failed with stages
in 20 minutes and 8 seconds
......@@ -114,8 +114,6 @@
#define RADIX_TIMING 0
#endif
/// provide for necessary includes if timing is on
#if RADIX_TIMING
#include <chrono>
#include <ctime>
namespace radix
......@@ -160,7 +158,6 @@ public:
}
}; // class Timer
} // namespace radix
#endif
#if RADIX_TIMING > 0
#define radix_timer(name) radix::Timer name
......
......@@ -46,4 +46,7 @@ TEST(radixbug, Timer)
EXPECT_EQ(timer2.intervals(), 100);
EXPECT_EQ(timer3.intervals(), (100*10000));
std::chrono::seconds second((42300*3)); //1.5 days
using days = std::chrono::duration<float, std::ratio<84600,1>>;
std::cout << "Days: " << days(second).count() << std::endl;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment