Allow OS to define grace time function