MCPcopy Create free account
hub / github.com/cpvrlab/ImagePlay / showProcessDuration

Method showProcessDuration

ImagePlay/src/ImageViewerWindow.cpp:234–243  ·  view source on GitHub ↗

----------------------------------------------------------------------------- ! ImageViewerWindow::showProcessDuration */

Source from the content-addressed store, hash-verified

232ImageViewerWindow::showProcessDuration
233*/
234void ImageViewerWindow::showProcessDuration(int durationMs)
235{
236 qDebug() << "ImageViewerWindow::showProcessDuration";
237 if(durationMs > 0)
238 {
239 float fps = 1000.0f / durationMs;
240 QString durationMsg("Total duration: %1ms / %2fps");
241 ui->statusbar->showMessage(durationMsg.arg(durationMs).arg(fps, 0, 'f', 1));
242 }
243}
244//-----------------------------------------------------------------------------
245/*!
246ImageViewerWindow::updateHistogram

Callers 1

executeMethod · 0.80

Calls 1

showMessageMethod · 0.80

Tested by

no test coverage detected