@@ -682,6 +682,7 @@ function main(): void
682
682
if ($ test_cnt ) {
683
683
putenv ('NO_INTERACTION=1 ' );
684
684
usort ($ test_files , "test_sort " );
685
+ $ start_timestamp = time ();
685
686
$ start_time = hrtime (true );
686
687
687
688
echo "Running selected tests. \n" ;
@@ -730,6 +731,7 @@ function main(): void
730
731
$ test_files = array_unique ($ test_files );
731
732
usort ($ test_files , "test_sort " );
732
733
734
+ $ start_timestamp = time ();
733
735
$ start_time = hrtime (true );
734
736
show_start ($ start_time );
735
737
@@ -755,7 +757,7 @@ function main(): void
755
757
756
758
compute_summary ();
757
759
758
- show_end ($ end_time );
760
+ show_end ($ start_timestamp , $ start_time , $ end_time );
759
761
show_summary ();
760
762
761
763
save_results ($ output_file , /* prompt_to_save_results: */ true );
@@ -3167,14 +3169,14 @@ function get_summary(bool $show_ext_summary): string
3167
3169
return $ summary ;
3168
3170
}
3169
3171
3170
- function show_start (int $ start_time ): void
3172
+ function show_start (int $ start_timestamp ): void
3171
3173
{
3172
- echo "TIME START " . date ('Y-m-d H:i:s ' , $ start_time / 1e9 ) . "\n===================================================================== \n" ;
3174
+ echo "TIME START " . date ('Y-m-d H:i:s ' , $ start_timestamp ) . "\n===================================================================== \n" ;
3173
3175
}
3174
3176
3175
- function show_end (int $ end_time ): void
3177
+ function show_end (int $ start_timestamp , float $ start_time , float $ end_time ): void
3176
3178
{
3177
- echo "===================================================================== \nTIME END " . date ('Y-m-d H:i:s ' , $ end_time / 1e9 ) . "\n" ;
3179
+ echo "===================================================================== \nTIME END " . date ('Y-m-d H:i:s ' , $ start_timestamp + ( int )(( $ end_time - $ start_time )/ 1e9 ) ) . "\n" ;
3178
3180
}
3179
3181
3180
3182
function show_summary (): void
0 commit comments