<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/AutoCloseable.html"title="class or interface in java.lang"class="external-link">AutoCloseable</a></code></dd>
</dl>
<dlclass="notes">
<dt>All Known Implementing Classes:</dt>
<dd><code><ahref="FullServerTickHandler.html"title="class in co.aikar.timings">FullServerTickHandler</a></code>, <code><ahref="NullTimingHandler.html"title="class in co.aikar.timings">NullTimingHandler</a></code></dd>
extends <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/AutoCloseable.html"title="class or interface in java.lang"class="external-link">AutoCloseable</a></span></div>
<divclass="block">Provides an ability to time sections of code within the Minecraft Server</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a> co.aikar.timings.TimingHandler</code></div>
<divclass="block">Used internally to get the actual backing Handler in the case of delegated Handlers</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Timing.html"title="interface in co.aikar.timings">Timing</a></code></div>
<divclass="block">Starts timing the execution until <ahref="#stopTiming()"><code>stopTiming()</code></a> is called.</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Timing.html"title="interface in co.aikar.timings">Timing</a></code></div>
<divclass="block">Stops timing and records the data.</div>
</div>
</div>
</div>
</div>
</section>
</li>
</ul>
</section>
<sectionclass="details">
<ulclass="details-list">
<!-- ============ METHOD DETAIL ========== -->
<li>
<sectionclass="method-details"id="method-detail">
<h2>Method Details</h2>
<ulclass="member-list">
<li>
<sectionclass="detail"id="startTiming()">
<h3>startTiming</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Timing.html"title="interface in co.aikar.timings">Timing</a></span> <spanclass="element-name">startTiming</span>()</div>
<divclass="block">Starts timing the execution until <ahref="#stopTiming()"><code>stopTiming()</code></a> is called.</div>
<divclass="block"><p>Stops timing and records the data. Propagates the data up to group handlers.</p>
Will automatically be called when this Timing is used with try-with-resources</div>
</section>
</li>
<li>
<sectionclass="detail"id="startTimingIfSync()">
<h3>startTimingIfSync</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Timing.html"title="interface in co.aikar.timings">Timing</a></span> <spanclass="element-name">startTimingIfSync</span>()</div>
<divclass="block">Starts timing the execution until <ahref="#stopTiming()"><code>stopTiming()</code></a> is called.
<divclass="block"><p>Stops timing and records the data. Propagates the data up to group handlers.</p>
<p>Will automatically be called when this Timing is used with try-with-resources</p>
But only if we are on the primary thread.</div>
</section>
</li>
<li>
<sectionclass="detail"id="abort()">
<h3>abort</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html"title="class or interface in java.lang"class="external-link">@Deprecated</a>
<divclass="deprecation-comment">Doesn't do anything - Removed</div>
</div>
</section>
</li>
<li>
<sectionclass="detail"id="getTimingHandler()">
<h3>getTimingHandler</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
</span><spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a> co.aikar.timings.TimingHandler</span> <spanclass="element-name">getTimingHandler</span>()</div>
<divclass="block">Used internally to get the actual backing Handler in the case of delegated Handlers</div>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/AutoCloseable.html#close()"title="class or interface in java.lang"class="external-link">close</a></code> in interface <code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/AutoCloseable.html"title="class or interface in java.lang"class="external-link">AutoCloseable</a></code></dd>