thorium: move the code that prints runtime information in a function

Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>