Boost.Test: time to execute a unit test?

Hi, The time it takes to execute a unit tests is rarely showing up in the log. It shows up for some test cases but not others. Furthermore, the individual test cases for which the time does appear seem to change from run to run. Here is an example: For the first run of one of our tests we get (an excerpt only): ... Entering test case "QuaternionTest" Leaving test case "QuaternionTest" Entering test case "QuaternionOperatorsTest" Leaving test case "QuaternionOperatorsTest" Entering test case "QuaternionMathTest" Leaving test case "QuaternionMathTest" Entering test case "QuaternionTransformsTest" Leaving test case "QuaternionTransformsTest"; testing time: 16ms Entering test case "QuaternionLerpTest" Leaving test case "QuaternionLerpTest" Entering test case "QuaternionConjugateTest" Leaving test case "QuaternionConjugateTest" ... However, another run will yield a different output. ... Entering test case "QuaternionTest" Leaving test case "QuaternionTest" Entering test case "QuaternionOperatorsTest" Leaving test case "QuaternionOperatorsTest"; testing time: 16ms Entering test case "QuaternionMathTest" Leaving test case "QuaternionMathTest" Entering test case "QuaternionTransformsTest" Leaving test case "QuaternionTransformsTest" Entering test case "QuaternionLerpTest" Leaving test case "QuaternionLerpTest" Entering test case "QuaternionConjugateTest" Leaving test case "QuaternionConjugateTest" ... It seems to me that the testing time is not being outputted if it is less than 15ms. The unit tests are being run on Windows XP professional. Any help would be appreciated. Thanks. -- Fadi,

Fadi Beyrouti <fbeyrout <at> gmail.com> writes:
Hi,The time it takes to execute a unit tests is rarely showing up in the log.
I believe it does not show execution time if it's zero, and time measuring function aren't able to detect real time diff if it less than some threshold. I might need better one, but I believe I am using one provided by standard. Gennadiy
participants (2)
-
Fadi Beyrouti
-
Gennadiy Rozental