Skip to main content

TimeCounter

Complete API reference for TimeCounter, including constructors, attributes, virtual attributes, and methods.

Package: JAVARuntime

Category: Time

Component: no


public class TimeCounter

Constructors

SignatureDescription
TimeCounter()Executes TimeCounter and returns after the underlying engine call finishes.

Virtual Attributes

NameTypeAccessDescription
elapsedMillisecondsfloatgetReturns the elapsed time in milliseconds.
elapsedSecondsfloatgetReturns the elapsed time in seconds.

Methods

SignatureReturnsDescription
start()voidStarts the time counter.
finish()voidFinishes the time counter and calculates the elapsed time.