用于测量时间流逝的类。更多…
#include <opencv2/core/utility.hpp>
用于测量时间流逝的类。
该类通过计算每秒滴答数来计算时间流逝。也就是说,以下代码计算以秒为单位的执行时间
也可以计算多次运行的平均时间
for (int i = 0; i < COUNT; i++)
{
}
cout <<
"平均 FPS:" << tm.
getFPS() << endl;
- 另请参见
- getTickCount,getTickFrequency
- 示例
- samples/dnn/classification.cpp 和 samples/dnn/object_detection.cpp。
◆ TickMeter()
cv::TickMeter::TickMeter |
( |
| ) |
|
|
inline |
Python |
---|
| cv.TickMeter( | | ) -> | <TickMeter 对象> |
◆ getAvgTimeMilli()
double cv::TickMeter::getAvgTimeMilli |
( |
| ) |
const |
|
inline |
Python |
---|
| cv.TickMeter.getAvgTimeMilli( | | ) -> | retval |
◆ getAvgTimeSec()
double cv::TickMeter::getAvgTimeSec |
( |
| ) |
const |
|
inline |
Python |
---|
| cv.TickMeter.getAvgTimeSec( | | ) -> | retval |
◆ getCounter()
int64 cv::TickMeter::getCounter |
( |
| ) |
const |
|
inline |
Python |
---|
| cv.TickMeter.getCounter( | | ) -> | retval |
◆ getFPS()
double cv::TickMeter::getFPS |
( |
| ) |
const |
|
inline |
Python |
---|
| cv.TickMeter.getFPS( | | ) -> | retval |
◆ getLastTimeMicro()
double cv::TickMeter::getLastTimeMicro |
( |
| ) |
const |
|
inline |
Python |
---|
| cv.TickMeter.getLastTimeMicro( | | ) -> | retval |
◆ getLastTimeMilli()
double cv::TickMeter::getLastTimeMilli |
( |
| ) |
const |
|
inline |
Python |
---|
| cv.TickMeter.getLastTimeMilli( | | ) -> | retval |
◆ getLastTimeSec()
double cv::TickMeter::getLastTimeSec |
( |
| ) |
const |
|
inline |
Python |
---|
| cv.TickMeter.getLastTimeSec( | | ) -> | retval |
◆ getLastTimeTicks()
int64 cv::TickMeter::getLastTimeTicks |
( |
| ) |
const |
|
inline |
Python |
---|
| cv.TickMeter.getLastTimeTicks( | | ) -> | retval |
◆ getTimeMicro()
double cv::TickMeter::getTimeMicro |
( |
| ) |
const |
|
inline |
Python |
---|
| cv.TickMeter.getTimeMicro( | | ) -> | retval |
◆ getTimeMilli()
double cv::TickMeter::getTimeMilli |
( |
| ) |
const |
|
inline |
Python |
---|
| cv.TickMeter.getTimeMilli( | | ) -> | retval |
◆ getTimeSec()
double cv::TickMeter::getTimeSec |
( |
| ) |
const |
|
inline |
Python |
---|
| cv.TickMeter.getTimeSec( | | ) -> | retval |
◆ getTimeTicks()
int64 cv::TickMeter::getTimeTicks |
( |
| ) |
const |
|
inline |
Python |
---|
| cv.TickMeter.getTimeTicks( | | ) -> | retval |
◆ reset()
void cv::TickMeter::reset |
( |
| ) |
|
|
inline |
Python |
---|
| cv.TickMeter.reset( | | ) -> | None |
◆ start()
void cv::TickMeter::start |
( |
| ) |
|
|
inline |
Python |
---|
| cv.TickMeter.start( | | ) -> | None |
◆ stop()
void cv::TickMeter::stop |
( |
| ) |
|
|
inline |
Python |
---|
| cv.TickMeter.stop( | | ) -> | None |
此类的文档是从以下文件生成的: