mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-01-23 00:15:58 +01:00
Implement optional printing of execution time for each test
This commit is contained in:
committed by
Shreyas Balakrishna
parent
05daf95d4e
commit
cc909efed3
@@ -93,6 +93,8 @@ void UnityTestRunner(unityfunction* setup,
|
||||
UnityMalloc_StartTest();
|
||||
UnityPointer_Init();
|
||||
|
||||
UNITY_EXEC_TIME_START();
|
||||
|
||||
if (TEST_PROTECT())
|
||||
{
|
||||
setup();
|
||||
@@ -418,6 +420,8 @@ void UnityConcludeFixtureTest(void)
|
||||
if (UnityFixture.Verbose)
|
||||
{
|
||||
UnityPrint(" PASS");
|
||||
UNITY_EXEC_TIME_STOP();
|
||||
UNITY_PRINT_EXEC_TIME();
|
||||
UNITY_PRINT_EOL();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user