OpenCV for Unity 2.6.3
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/4.10.0/index.html ) for the details of the argument of the method.
|
a Class to measure passing time. More...
Public Member Functions | |
IntPtr | getNativeObjAddr () |
TickMeter () | |
void | start () |
void | stop () |
long | getTimeTicks () |
double | getTimeMicro () |
double | getTimeMilli () |
double | getTimeSec () |
long | getCounter () |
double | getFPS () |
double | getAvgTimeSec () |
double | getAvgTimeMilli () |
void | reset () |
Public Member Functions inherited from OpenCVForUnity.DisposableObject | |
void | Dispose () |
void | ThrowIfDisposed () |
Static Public Member Functions | |
static TickMeter | __fromPtr__ (IntPtr addr) |
Static Public Member Functions inherited from OpenCVForUnity.DisposableObject | |
static IntPtr | ThrowIfNullIntPtr (IntPtr ptr) |
Protected Member Functions | |
override void | Dispose (bool disposing) |
Protected Member Functions inherited from OpenCVForUnity.DisposableOpenCVObject | |
DisposableOpenCVObject () | |
DisposableOpenCVObject (IntPtr ptr) | |
DisposableOpenCVObject (bool isEnabledDispose) | |
DisposableOpenCVObject (IntPtr ptr, bool isEnabledDispose) | |
Protected Member Functions inherited from OpenCVForUnity.DisposableObject | |
DisposableObject () | |
DisposableObject (bool isEnabledDispose) | |
Additional Inherited Members | |
Package Attributes inherited from OpenCVForUnity.DisposableOpenCVObject | |
Properties inherited from OpenCVForUnity.DisposableObject | |
bool | IsDisposed [get, protected set] |
bool | IsEnabledDispose [get, set] |
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:
It is also possible to compute the average time over multiple runs:
OpenCVForUnity.CoreModule.TickMeter.TickMeter | ( | ) |
|
static |
|
protectedvirtual |
Reimplemented from OpenCVForUnity.DisposableOpenCVObject.
double OpenCVForUnity.CoreModule.TickMeter.getAvgTimeMilli | ( | ) |
double OpenCVForUnity.CoreModule.TickMeter.getAvgTimeSec | ( | ) |
long OpenCVForUnity.CoreModule.TickMeter.getCounter | ( | ) |
double OpenCVForUnity.CoreModule.TickMeter.getFPS | ( | ) |
IntPtr OpenCVForUnity.CoreModule.TickMeter.getNativeObjAddr | ( | ) |
double OpenCVForUnity.CoreModule.TickMeter.getTimeMicro | ( | ) |
double OpenCVForUnity.CoreModule.TickMeter.getTimeMilli | ( | ) |
double OpenCVForUnity.CoreModule.TickMeter.getTimeSec | ( | ) |
long OpenCVForUnity.CoreModule.TickMeter.getTimeTicks | ( | ) |
void OpenCVForUnity.CoreModule.TickMeter.reset | ( | ) |
void OpenCVForUnity.CoreModule.TickMeter.start | ( | ) |
void OpenCVForUnity.CoreModule.TickMeter.stop | ( | ) |