Implemented improved c style CPU and GPU timers