Package org.opendaylight.protocol.util
Class StatisticsUtil
java.lang.Object
org.opendaylight.protocol.util.StatisticsUtil
Statistics utility class.
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
formatElapsedTime
(long seconds) Formats elapsed time in seconds to form days:hours:minutes:seconds.static long
Get current time in seconds.
-
Method Details
-
formatElapsedTime
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.
-