Interface RateLimiterClock


public interface RateLimiterClock
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Returns the current time in seconds, and should include sub second resolution.
  • Method Details

    • time

      double time()
      Returns the current time in seconds, and should include sub second resolution. This class needs not to be related to the actual wall clock-time or system as it's only used to measure elapsed time.

      For instance, it the current time is

      PT2M8.067S
      , i.e., 2 minutes with 8 seconds and 67 milliseconds, this method will return
      128.067
      .
      Returns:
      the current time in seconds, and should include sub second resolution