generate a message that shows the elapsed time of a calculation process example output: "calculated normalmap (1.542 seconds)"
| 823 | //generate a message that shows the elapsed time of a calculation process |
| 824 | //example output: "calculated normalmap (1.542 seconds)" |
| 825 | QString 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 | |
| 836 | void MainWindow::openExportFolder() { |
| 837 | QDesktopServices::openUrl(exportPath); |
nothing calls this directly
no outgoing calls
no test coverage detected