Class TimeHelper

  • All Implemented Interfaces:

    
    public class TimeHelper
    
                        

    The class TimeHelper provides helper functions to ease time displaying.

    Since:

    3.0

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      TimeHelper()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static String time(long t)
      static String formatTimeStamp(long timeStamp) Format the specified time stamp to string using JMeter properties.
      static String formatTimeStamp(long timeStamp, String format) Format the specified time stamp to string using the format.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TimeHelper

        TimeHelper()
    • Method Detail

      • formatTimeStamp

         static String formatTimeStamp(long timeStamp)

        Format the specified time stamp to string using JMeter properties.

        Parameters:
        timeStamp - the time stamp
        Returns:

        the string

      • formatTimeStamp

         static String formatTimeStamp(long timeStamp, String format)

        Format the specified time stamp to string using the format.

        Parameters:
        timeStamp - the time stamp
        format - the format
        Returns:

        the string