Class TimestampUtils
- java.lang.Object
- 
- com.ibm.wsspi.kernel.service.utils.TimestampUtils
 
- 
 public class TimestampUtils extends java.lang.Object
- 
- 
Constructor SummaryConstructors Constructor Description TimestampUtils()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static voidauditElapsedTime(com.ibm.websphere.ras.TraceComponent callingTc, java.lang.String msgKey)static java.lang.StringgetElapsedTime()static java.lang.StringgetElapsedTime(long startTime)Deprecated.Replaced by @linkgetElapsedTimeNanos(long).static java.lang.StringgetElapsedTimeNanos(long startTime)static longgetStartTimeNano()Returns the nanosecond tick count when the server started, which may be negative.static longreadTimeFromFile(java.io.File file)static voidwriteTimeToFile(java.io.File file, long timestamp)
 
- 
- 
- 
Method Detail- 
writeTimeToFilepublic static void writeTimeToFile(java.io.File file, long timestamp)
 - 
readTimeFromFilepublic static long readTimeFromFile(java.io.File file) 
 - 
auditElapsedTimepublic static void auditElapsedTime(com.ibm.websphere.ras.TraceComponent callingTc, java.lang.String msgKey)- Parameters:
- nlsClass- Class from the calling bundle
- msgKey- Translated message key
 
 - 
getElapsedTimepublic static java.lang.String getElapsedTime() 
 - 
getElapsedTime@Deprecated public static java.lang.String getElapsedTime(long startTime) Deprecated.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
 
 - 
getElapsedTimeNanospublic static java.lang.String getElapsedTimeNanos(long startTime) - 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.
 
- 
 
-