class PerformanceCounter (shared-side)
Available since version: 0.4.0
This class represents performance timer that can measure code execution time.
Constructor
PerformanceCounter()
Parameters:
No parameters.
Properties
No properties.
Methods
start
This method starts performance counter.
void start()
stop
This method stops performance counter.
void stop()
count
This method returns the time passed between start & stop calls.
int count(PrecisionUnit precision)
Parameters:
PrecisionUnitprecision: the precision unit that will be used to count the elapsed time.
Returns int:
the elapsed in passed precision unit.
duration
Alis for count method.
int duration(PrecisionUnit precision)
Parameters:
PrecisionUnitprecision: the precision unit that will be used to count the elapsed time.
Returns int:
the elapsed in passed precision unit.
Callbacks
No callbacks.