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.
Loading...
Searching...
No Matches
OpenCVForUnity.CoreModule.TickMeter Class Reference

a Class to measure passing time. More...

Inheritance diagram for OpenCVForUnity.CoreModule.TickMeter:
OpenCVForUnity.DisposableOpenCVObject OpenCVForUnity.DisposableObject

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]
 

Detailed Description

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:

See also
getTickCount, getTickFrequency

Constructor & Destructor Documentation

◆ TickMeter()

OpenCVForUnity.CoreModule.TickMeter.TickMeter ( )

Member Function Documentation

◆ __fromPtr__()

static TickMeter OpenCVForUnity.CoreModule.TickMeter.__fromPtr__ ( IntPtr addr)
static

◆ Dispose()

override void OpenCVForUnity.CoreModule.TickMeter.Dispose ( bool disposing)
protectedvirtual

◆ getAvgTimeMilli()

double OpenCVForUnity.CoreModule.TickMeter.getAvgTimeMilli ( )

◆ getAvgTimeSec()

double OpenCVForUnity.CoreModule.TickMeter.getAvgTimeSec ( )

◆ getCounter()

long OpenCVForUnity.CoreModule.TickMeter.getCounter ( )

◆ getFPS()

double OpenCVForUnity.CoreModule.TickMeter.getFPS ( )

◆ getNativeObjAddr()

IntPtr OpenCVForUnity.CoreModule.TickMeter.getNativeObjAddr ( )

◆ getTimeMicro()

double OpenCVForUnity.CoreModule.TickMeter.getTimeMicro ( )

◆ getTimeMilli()

double OpenCVForUnity.CoreModule.TickMeter.getTimeMilli ( )

◆ getTimeSec()

double OpenCVForUnity.CoreModule.TickMeter.getTimeSec ( )

◆ getTimeTicks()

long OpenCVForUnity.CoreModule.TickMeter.getTimeTicks ( )

◆ reset()

void OpenCVForUnity.CoreModule.TickMeter.reset ( )

◆ start()

void OpenCVForUnity.CoreModule.TickMeter.start ( )

◆ stop()

void OpenCVForUnity.CoreModule.TickMeter.stop ( )

The documentation for this class was generated from the following file: