implemented time and CPU usage