java.lang.Object
org.eclipse.jgit.logging.PerformanceLogRecord
Class to register a performance log record.
- Since:
- 5.10
-
Constructor Summary
ConstructorsConstructorDescriptionPerformanceLogRecord
(String name, long durationMs) Create a new performance log record for an event. -
Method Summary
Modifier and TypeMethodDescriptionlong
Get the duration in milliseconds of the recorded event.getName()
Get the name of the recorded event.
-
Constructor Details
-
PerformanceLogRecord
Create a new performance log record for an event.- Parameters:
name
- name of the event.durationMs
- duration in milliseconds of the event.
-
-
Method Details
-
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.
-