Class OceanusProfile
java.lang.Object
io.github.tonywasher.joceanus.oceanus.profile.OceanusProfile
Profile data.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumStatus of timer. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidend()End the task.Obtain the currently active task.Obtain the elapsed time of the profile.Obtain the hidden time of the profile.getName()Obtain the name of the profile.Obtain the status of the profile.booleanis the task running?Start a new subTask.Obtain the subtask iterator.
-
Constructor Details
-
OceanusProfile
Constructor.- Parameters:
pName- the name of the step
-
-
Method Details
-
getName
Obtain the name of the profile.- Returns:
- the name
-
getStatus
Obtain the status of the profile.- Returns:
- the status
-
getElapsed
Obtain the elapsed time of the profile.- Returns:
- the elapsedTime
-
getHidden
Obtain the hidden time of the profile.- Returns:
- the hiddenTime
-
subTaskIterator
Obtain the subtask iterator.- Returns:
- the iterator
-
startTask
Start a new subTask.- Parameters:
pName- the name of the subTask- Returns:
- the new task
-
end
public void end()End the task. -
isRunning
public boolean isRunning()is the task running?- Returns:
- true/false.
-
getActiveTask
Obtain the currently active task.- Returns:
- the task
-