Class TimestampUtils
java.lang.Object
com.ibm.wsspi.kernel.service.utils.TimestampUtils
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidauditElapsedTime(com.ibm.websphere.ras.TraceComponent callingTc, String msgKey) static Stringstatic StringgetElapsedTime(long startTime) Deprecated.static StringgetElapsedTimeNanos(long startTime) static final longReturns the nanosecond tick count when the server started, which may be negative.static longreadTimeFromFile(File file) static voidwriteTimeToFile(File file, long timestamp) 
- 
Constructor Details- 
TimestampUtilspublic TimestampUtils()
 
- 
- 
Method Details- 
writeTimeToFile
- 
readTimeFromFile
- 
auditElapsedTime- Parameters:
- nlsClass- Class from the calling bundle
- msgKey- Translated message key
 
- 
getElapsedTime
- 
getElapsedTimeDeprecated.Replaced by @linkgetElapsedTimeNanos(long). Note that System.currentTimeMillis can go backwards and hence you may get a string that starts with '-' character- Parameters:
- startTime- The start time (Obtained from System.currentTimeMillis)
- Returns:
- a string version of the time since the startTime
 
- 
getElapsedTimeNanos- Parameters:
- startTime- The start time (Obtained from System.nanoTime)
- Returns:
- a string version of the time since the startTime
 
- 
getStartTimeNanopublic static final long getStartTimeNano()Returns the nanosecond tick count when the server started, which may be negative.
 
- 
getElapsedTimeNanos(long).