When executed with all logging enabled (e.g. test --log_level=all
), a unit test created with the Boost Unit Test Framework will report how long an individual test case took with a message like this:
Leaving test case "testRecursiveSchedule"; testing time: 2196mks
The unit displayed there, mks, mystifies me. I understand that Meters-Kilograms-Seconds is a system for metric measurement, but Boost is clearly displaying a time measurement only. Shouldn't the unit in this case be ms if milliseconds or μs (or perhaps us) if microseconds? Is mks commonly understood as an abbreviation for microseconds?
Note that according to the Boost unit test framework source code, the unit displayed will be ms if the elapsed time happens to be evenly divisible by 1000, in which case it will be divided by 1000 before being displayed. That's consistent with the idea that mks is meant to imply microseconds.
But does it? Or is Boost being idiosyncratic here?