Package com.wowza.util
Class ElapsedTimer
- Object
- 
- com.wowza.util.ElapsedTimer
 
- 
 public class ElapsedTimer extends ObjectElapsedTimer: Utility class for keep track of the duration an object has been in existence. 
- 
- 
Constructor SummaryConstructors Constructor Description ElapsedTimer()Construct a new ElapsedTimer and start the clockElapsedTimer(long timestamp)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.DategetDate()Get the date the object was createdStringgetDateString()Get the date object was created as formatted StringlonggetTime()Get elapsed time object in existence (milliseconds)doublegetTimeSeconds()Get elapsed time object in secondsStringgetTimeString()Get elapsed time object in existence as formatted String (Ex: 3 days 2 minutes 5 seconds)
 
- 
- 
- 
Method Detail- 
getDatepublic java.util.Date getDate() Get the date the object was created- Returns:
- date object created
 
 - 
getDateStringpublic String getDateString() Get the date object was created as formatted String- Returns:
- date object created as formatted String
 
 - 
getTimepublic long getTime() Get elapsed time object in existence (milliseconds)- Returns:
- elapsed time (milliseconds)
 
 - 
getTimeSecondspublic double getTimeSeconds() Get elapsed time object in seconds- Returns:
- elapsed time in seconds
 
 - 
getTimeStringpublic String getTimeString() Get elapsed time object in existence as formatted String (Ex: 3 days 2 minutes 5 seconds)- Returns:
- elapsed time as formatted String
 
 
- 
 
-