Class LogUtil

java.lang.Object
com.almis.awe.model.util.log.LogUtil

public class LogUtil extends Object
LogUtil Class Returns an instance of logger.
Author:
Pablo VIDAL - 21/Ene/2022
  • Method Details

    • prepareTimeLapse

      public static List<Long> prepareTimeLapse()
      Generate a time lapse
      Returns:
      Time lapse
    • checkpoint

      public static void checkpoint(List<Long> timeLapse)
      Store a checkpoint in the timelapse
      Parameters:
      timeLapse - Time lapse
    • getElapsed

      public static double getElapsed(List<Long> timeLapse, int startPoint, int endPoint)
      Return the elapsed time between two code points
      Parameters:
      timeLapse - Time lapse
      startPoint - start point
      endPoint - end point
      Returns:
      Elapsed time
    • getElapsed

      public static double getElapsed(List<Long> timeLapse, int point)
      Return the elapsed time in a point
      Parameters:
      timeLapse - Time lapse
      point - point to retrieve (starting from 1)
      Returns:
      Elapsed time
    • getTotalTime

      public static String getTotalTime(List<Long> timeLapse)
      Return the total elapsed time
      Parameters:
      timeLapse - Time lapse
      Returns:
      Elapsed time