Added routines to print runtime

* Added routines to print runtime:
  * print_runtimes(): print wall and CPU times for some interval
  * print_cputime(): print CPU time since start of program