mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 13:26:10 +01:00
47a2c96938
The basic idea was to reduce the number of things dependent on the `Clock` type. To that end, I replaced `Duration<Clock>` with `IDuration` typedef for `std::nanoseconds`, and `FloatDuration<Clock>` with `FDuration` typedef for `Duration<double, std::nano>`. We can generally assume that any clock's duration can be expressed in nanoseconds, as long as we insert `duration_cast`s into the right places. Note that we cannot remove all dependence on `Clock` as a template arguments, because functions that actually measure the elapsed time have to use the Clock. We also changed some template function arguments to pass plain function pointers, so that the actual implementation can be placed into a cpp file. |
||
---|---|---|
.. | ||
Algorithms.tests.cpp | ||
AssertionHandler.tests.cpp | ||
Clara.tests.cpp | ||
CmdLine.tests.cpp | ||
CmdLineHelpers.tests.cpp | ||
ColourImpl.tests.cpp | ||
Details.tests.cpp | ||
FloatingPoint.tests.cpp | ||
GeneratorsImpl.tests.cpp | ||
InternalBenchmark.tests.cpp | ||
Parse.tests.cpp | ||
PartTracker.tests.cpp | ||
RandomNumberGeneration.tests.cpp | ||
Reporters.tests.cpp | ||
Sharding.tests.cpp | ||
Stream.tests.cpp | ||
String.tests.cpp | ||
StringManip.tests.cpp | ||
Tag.tests.cpp | ||
TestCaseInfoHasher.tests.cpp | ||
TestSpec.tests.cpp | ||
TestSpecParser.tests.cpp | ||
TextFlow.tests.cpp | ||
ToString.tests.cpp | ||
Traits.tests.cpp | ||
UniquePtr.tests.cpp | ||
Xml.tests.cpp |