Class DurationUtils

java.lang.Object
de.wuespace.telestion.extension.mongodb.util.DurationUtils

public class DurationUtils extends Object
  • Constructor Details

    • DurationUtils

      public DurationUtils()
  • Method Details

    • fromRate

      public static Duration fromRate(int rate)
      Helper function to turn rate into milliseconds.
      Parameters:
      rate - the desired data rate times per second
      Returns:
      a duration in (1/rate)