Using GetProcessTimes instea of permanent time checking