Update RateLimit.java for more reliable timing.