本文整理汇总了C++中PerformanceTimer::isRunning方法的典型用法代码示例。如果您正苦于以下问题:C++ PerformanceTimer::isRunning方法的具体用法?C++ PerformanceTimer::isRunning怎么用?C++ PerformanceTimer::isRunning使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PerformanceTimer
的用法示例。
在下文中一共展示了PerformanceTimer::isRunning方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: LOGD
void Shot2Shot::stop(void)
{
if (gShot2Shot.isRunning()) {
if (gPnPBreakdown.isRunning())
PnPBreakdown::step("Shot2Shot::stop");
LOGD("shot2shot latency: %lld us.", gShot2Shot.timeUs());
gShot2Shot.stop();
}
}
示例2: stop
/**
* Marks that take picture call has been issued.
*
* This is needed to reliably detect start and end of shot2shot
* sequences.
*/
void Shot2Shot::takePictureCalled(void)
{
if (gShot2Shot.isRunning() == true)
stop();
start();
}
示例3:
/**
* Starts shot2shot trace
*/
void Shot2Shot::start(void)
{
if (gShot2Shot.isRequested()) {
gShot2Shot.start();
if (gPnPBreakdown.isRunning())
PnPBreakdown::step("Shot2Shot::start");
}
}
示例4: start
/**
* Starts the FaceLock trace.
*/
void FaceLock::start(int frameNum)
{
if (gFaceLock.isRequested() && !gFaceLock.isRunning()) {
gFaceLock.formattedTrace("FaceLock", __FUNCTION__);
gFaceLockFrame = frameNum;
gFaceLock.start();
}
}
示例5: mFuncName
/**
* To indicate the performance and memory for every IOCTL call.
*
* @arg func, the function name which called it.
* @arg note, a string printed with IOCTL information.
*/
IOBreakdown::IOBreakdown(const char *func, const char *note):
mFuncName(func)
,mNote(note)
{
if (gIOBreakdown.isRunning()) {
gIOBreakdown.timeUs();
gIOBreakdown.lastTimeUs();
}
}
示例6: snapshotTaken
/**
* Prints ShutterLag trace results.
*/
void ShutterLag::snapshotTaken(struct timeval *ts)
{
if (gShutterLag.isRunning()) {
LOGD("ShutterLag from takePicture() to shot taken:\t%lldms\n",
(((nsecs_t(ts->tv_sec)*1000000LL
+ nsecs_t(ts->tv_usec))
- gShutterLag.mStartAt/1000)/1000));
}
}
示例7: step
/**
* Mark an intermediate step in breakdown tracer.
*
* @arg func, the function name which called it.
* @arg not, a string printed with the breakdown trace
* @arg mFrameNum, the num of the frame got from ISP.
*/
void PnPBreakdown::step(const char *func, const char* note, const int mFrameNum)
{
if (gPnPBreakdown.isRunning()) {
if (!note)
note = "";
if (mFrameNum < 0)
LOGD("PnPBreakdown-step %s:%s, Time: %lld us, Diff: %lld us",
func, note, gPnPBreakdown.timeUs(), gPnPBreakdown.lastTimeUs());
else
LOGD("PnPBreakdown-step %s:%s[%d], Time: %lld us, Diff: %lld us",
func, note, mFrameNum, gPnPBreakdown.timeUs(), gPnPBreakdown.lastTimeUs());
}
}
示例8: getCurFrameNum
/**
* get current preview frame num
*/
void FaceLock::getCurFrameNum(const int mFrameNum)
{
if (gFaceLock.isRunning()) {
gFaceLockFrame = mFrameNum - gFaceLockFrame;
}
}