Common.DebugSourceLogging function for command handling.
time_of f x computes f x and prints the time for computing it.
record_time s f records under s the time spent in calling f. print_time () outputs the recorded times.
record_time s f records under s the time spent in calling f. print_time () outputs the recorded times.