CommandHelper: fixed wrong calculation for elapsed times