How to display precompilation/import time with Documenter.jl?

When I put Pkg.precompile("Mypkg") or @time_imports using Mypkg in a @repl block, no output is rendered. How do I get the same output as what I have in my repl?