File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -104,8 +104,10 @@ impl IntegrationTests {
104
104
rust_file_count
105
105
) ;
106
106
107
+ let clock = Instant :: now ( ) ;
107
108
self . run_rust_benchmarks ( benchmarks, scene_tree) ;
108
- self . conclude_benchmarks ( ) ;
109
+ let total_time = clock. elapsed ( ) ;
110
+ self . conclude_benchmarks ( total_time) ;
109
111
}
110
112
111
113
fn warn_if_debug ( & self ) {
@@ -275,7 +277,10 @@ impl IntegrationTests {
275
277
}
276
278
}
277
279
278
- fn conclude_benchmarks ( & self ) { }
280
+ fn conclude_benchmarks ( & self , total_time : Duration ) {
281
+ let secs = total_time. as_secs_f32 ( ) ;
282
+ println ! ( "\n Benchmarks completed in {secs:.2}s." ) ;
283
+ }
279
284
280
285
fn update_stats ( & mut self , outcome : & TestOutcome , test_file : & str , test_name : & str ) {
281
286
self . total += 1 ;
You can’t perform that action at this time.
0 commit comments