Package co.aikar.timings
Interface Timing
- All Superinterfaces:
- AutoCloseable
- All Known Implementing Classes:
- FullServerTickHandler,- NullTimingHandler
Deprecated, for removal: This API element is subject to removal in a future version.
Timings will likely be replaced with Spark in the future
Provides an ability to time sections of code within the Minecraft Server
- 
Method SummaryModifier and TypeMethodDescriptionvoidabort()Deprecated.Doesn't do anything - Removedvoidclose()Deprecated, for removal: This API element is subject to removal in a future version.@Nullable co.aikar.timings.TimingHandlerDeprecated, for removal: This API element is subject to removal in a future version.Used internally to get the actual backing Handler in the case of delegated HandlersDeprecated, for removal: This API element is subject to removal in a future version.Starts timing the execution untilstopTiming()is called.Deprecated, for removal: This API element is subject to removal in a future version.Starts timing the execution untilstopTiming()is called.voidDeprecated, for removal: This API element is subject to removal in a future version.Stops timing and records the data.voidDeprecated, for removal: This API element is subject to removal in a future version.Stops timing and records the data.
- 
Method Details- 
startTimingDeprecated, for removal: This API element is subject to removal in a future version.Starts timing the execution untilstopTiming()is called.- Returns:
- Timing
 
- 
stopTimingvoid stopTiming()Deprecated, for removal: This API element is subject to removal in a future version.Stops timing and records the data. Propagates the data up to group handlers. Will automatically be called when this Timing is used with try-with-resources
- 
startTimingIfSyncDeprecated, for removal: This API element is subject to removal in a future version.Starts timing the execution untilstopTiming()is called. But only if we are on the primary thread.- Returns:
- Timing
 
- 
stopTimingIfSyncvoid stopTimingIfSync()Deprecated, for removal: This API element is subject to removal in a future version.Stops timing and records the data. Propagates the data up to group handlers. Will automatically be called when this Timing is used with try-with-resources But only if we are on the primary thread.
- 
abortDeprecated.Doesn't do anything - Removed
- 
getTimingHandlerDeprecated, for removal: This API element is subject to removal in a future version.Used internally to get the actual backing Handler in the case of delegated Handlers- Returns:
- TimingHandler
 
- 
closevoid close()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
- closein interface- AutoCloseable
 
 
-