Package com.almis.awe.model.util.log
Class LogUtil
java.lang.Object
com.almis.awe.model.util.log.LogUtil
LogUtil Class
Returns an instance of logger.
- Author:
- Pablo VIDAL - 21/Ene/2022
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkpoint
(List<Long> timeLapse) Store a checkpoint in the timelapsestatic double
getElapsed
(List<Long> timeLapse, int point) Return the elapsed time in a pointstatic double
getElapsed
(List<Long> timeLapse, int startPoint, int endPoint) Return the elapsed time between two code pointsstatic String
getTotalTime
(List<Long> timeLapse) Return the total elapsed timeGenerate a time lapse
-
Method Details
-
prepareTimeLapse
Generate a time lapse- Returns:
- Time lapse
-
checkpoint
Store a checkpoint in the timelapse- Parameters:
timeLapse
- Time lapse
-
getElapsed
Return the elapsed time between two code points- Parameters:
timeLapse
- Time lapsestartPoint
- start pointendPoint
- end point- Returns:
- Elapsed time
-
getElapsed
Return the elapsed time in a point- Parameters:
timeLapse
- Time lapsepoint
- point to retrieve (starting from 1)- Returns:
- Elapsed time
-
getTotalTime
Return the total elapsed time- Parameters:
timeLapse
- Time lapse- Returns:
- Elapsed time
-