Package com.nomagic.magicdraw.uml2.util
Class TimeTrackerFactory.DummyTimeTracker
- java.lang.Object
-
- com.nomagic.magicdraw.uml2.util.TimeTrackerFactory.DummyTimeTracker
-
- All Implemented Interfaces:
TimeTracker
- Enclosing class:
- TimeTrackerFactory
private static class TimeTrackerFactory.DummyTimeTracker extends java.lang.Object implements TimeTracker
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.nomagic.magicdraw.uml2.util.TimeTracker
TimeTracker.TrackedOperation
-
-
Field Summary
Fields Modifier and Type Field Description private static TimeTracker.TrackedOperation
OPERATION
-
Constructor Summary
Constructors Modifier Constructor Description private
DummyTimeTracker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dumpLongest(int count)
Dump longest operationslong
getAllTimePassedMillis()
TimeTracker.TrackedOperation
start(java.lang.Object operationName)
Start operationTimeTracker.TrackedOperation
start(java.util.function.Supplier<java.lang.Object> operationName)
Start operation
-
-
-
Field Detail
-
OPERATION
private static final TimeTracker.TrackedOperation OPERATION
-
-
Method Detail
-
start
public TimeTracker.TrackedOperation start(java.lang.Object operationName)
Description copied from interface:TimeTracker
Start operation- Specified by:
start
in interfaceTimeTracker
- Parameters:
operationName
- operation identifier- Returns:
- operation
-
start
public TimeTracker.TrackedOperation start(java.util.function.Supplier<java.lang.Object> operationName)
Description copied from interface:TimeTracker
Start operation- Specified by:
start
in interfaceTimeTracker
- Parameters:
operationName
- operation identifier- Returns:
- operation
-
dumpLongest
public void dumpLongest(int count)
Description copied from interface:TimeTracker
Dump longest operations- Specified by:
dumpLongest
in interfaceTimeTracker
- Parameters:
count
- number of longest operations to dump
-
getAllTimePassedMillis
public long getAllTimePassedMillis()
- Specified by:
getAllTimePassedMillis
in interfaceTimeTracker
- Returns:
- passed time from very first operation
-
-