MCPcopy Create free account
hub / github.com/Theverat/NormalmapGenerator / generateElapsedTimeMsg

Method generateElapsedTimeMsg

src_gui/mainwindow.cpp:825–834  ·  view source on GitHub ↗

generate a message that shows the elapsed time of a calculation process example output: "calculated normalmap (1.542 seconds)"

Source from the content-addressed store, hash-verified

823//generate a message that shows the elapsed time of a calculation process
824//example output: "calculated normalmap (1.542 seconds)"
825QString MainWindow::generateElapsedTimeMsg(int calcTimeMs, QString mapType) {
826 double calcTimeS = (double)calcTimeMs / 1000.0;
827
828 QString elapsedTimeMsg("calculated ");
829 elapsedTimeMsg.append(mapType);
830 elapsedTimeMsg.append(" (");
831 elapsedTimeMsg.append(QString::number(calcTimeS));
832 elapsedTimeMsg.append(" seconds)");
833 return elapsedTimeMsg;
834}
835
836void MainWindow::openExportFolder() {
837 QDesktopServices::openUrl(exportPath);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected