Package org.opendaylight.protocol.util
Class StatisticsUtil
- java.lang.Object
-
- org.opendaylight.protocol.util.StatisticsUtil
-
public final class StatisticsUtil extends Object
Statistics utility class.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
formatElapsedTime(long seconds)
Formats elapsed time in seconds to form days:hours:minutes:seconds.static long
getCurrentTimestampInSeconds()
Get current time in seconds.
-
-
-
Method Detail
-
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 alsoSystem.currentTimeMillis()
.- Returns:
- the difference, measured in seconds, between the current time and midnight, January 1, 1970 UTC.
-
-