Show time spent during garbage collection in @time macro (implement #7119)

Implement #7119.

During testing I get `0%` most of the time. Maybe the gc fraction should only be shown when the gc is actually run? @StefanKarpinski

My fun test is `@time gc()`