Class StatisticsUtil

java.lang.Object
org.opendaylight.protocol.util.StatisticsUtil

public final class StatisticsUtil extends Object
Statistics utility class.
  • Method Details

    • formatElapsedTime

      public static String formatElapsedTime(long seconds)
      Formats elapsed time in seconds to form days:hours:minutes:seconds.
      Parameters:
      seconds - Elapsed time in seconds.
      Returns:
      Formated time as string d:hh:mm:ss
    • getCurrentTimestampInSeconds

      public static long getCurrentTimestampInSeconds()
      Get current time in seconds. See also System.currentTimeMillis().
      Returns:
      the difference, measured in seconds, between the current time and midnight, January 1, 1970 UTC.