Package org.opencv.core
Class TickMeter
java.lang.Object
org.opencv.core.TickMeter
public class TickMeter extends Object
a Class to measure passing time.
The class computes passing time by counting the number of ticks per second. That is, the following code computes the
execution time in seconds:
SNIPPET: snippets/core_various.cpp TickMeter_total
It is also possible to compute the average time over multiple runs:
SNIPPET: snippets/core_various.cpp TickMeter_average
SEE: getTickCount, getTickFrequency
-
Field Summary
Fields Modifier and Type Field Description protected long
nativeObj
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description static TickMeter
__fromPtr__(long addr)
protected void
finalize()
double
getAvgTimeMilli()
double
getAvgTimeSec()
long
getCounter()
double
getFPS()
long
getNativeObjAddr()
double
getTimeMicro()
double
getTimeMilli()
double
getTimeSec()
long
getTimeTicks()
void
reset()
void
start()
void
stop()
-
Field Details
-
Constructor Details
-
Method Details