Package org.eclipse.jgit.logging
Class PerformanceLogRecord
- java.lang.Object
-
- org.eclipse.jgit.logging.PerformanceLogRecord
-
public class PerformanceLogRecord extends Object
Class to register a performance log record.- Since:
- 5.10
-
-
Constructor Summary
Constructors Constructor Description PerformanceLogRecord(String name, long durationMs)
Create a new performance log record for an event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getDurationMs()
Get the duration in milliseconds of the recorded event.String
getName()
Get the name of the recorded event.
-
-
-
Constructor Detail
-
PerformanceLogRecord
public PerformanceLogRecord(String name, long durationMs)
Create a new performance log record for an event.- Parameters:
name
- name of the event.durationMs
- duration in milliseconds of the event.
-
-
Method Detail
-
getName
public String getName()
Get the name of the recorded event.- Returns:
- name of the recorded event.
-
getDurationMs
public long getDurationMs()
Get the duration in milliseconds of the recorded event.- Returns:
- duration in milliseconds of the recorded event.
-
-