new function get_cputime() to measure CPU time for all
ReasoningProcesses