OpenCV453
公開メンバ関数 | 全メンバ一覧

a Class to measure passing time. [詳解]

#include <utility.hpp>

公開メンバ関数

CV_WRAP TickMeter ()
 the default constructor
 
CV_WRAP void start ()
 starts counting ticks.
 
CV_WRAP void stop ()
 stops counting ticks.
 
CV_WRAP int64 getTimeTicks () const
 returns counted ticks.
 
CV_WRAP double getTimeMicro () const
 returns passed time in microseconds.
 
CV_WRAP double getTimeMilli () const
 returns passed time in milliseconds.
 
CV_WRAP double getTimeSec () const
 returns passed time in seconds.
 
CV_WRAP int64 getCounter () const
 returns internal counter value.
 
CV_WRAP double getFPS () const
 returns average FPS (frames per second) value.
 
CV_WRAP double getAvgTimeSec () const
 returns average time in seconds
 
CV_WRAP double getAvgTimeMilli () const
 returns average time in milliseconds
 
CV_WRAP void reset ()
 resets internal values.
 

詳解

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:

参照
getTickCount, getTickFrequency

このクラス詳解は次のファイルから抽出されました: