unix consolepauser minor fix
This commit is contained in:
parent
0e9278e98a
commit
a91ca21c0e
|
@ -207,7 +207,7 @@ int main(int argc, char** argv) {
|
||||||
auto endtime = std::chrono::high_resolution_clock::now();
|
auto endtime = std::chrono::high_resolution_clock::now();
|
||||||
auto difftime = endtime - starttime;
|
auto difftime = endtime - starttime;
|
||||||
auto milliseconds = std::chrono::duration_cast<std::chrono::milliseconds>(difftime);
|
auto milliseconds = std::chrono::duration_cast<std::chrono::milliseconds>(difftime);
|
||||||
double seconds = milliseconds.count()/1000;
|
double seconds = milliseconds.count()/1000.0;
|
||||||
|
|
||||||
if (pBuf) {
|
if (pBuf) {
|
||||||
strcpy(pBuf,"FINISHED");
|
strcpy(pBuf,"FINISHED");
|
||||||
|
@ -219,7 +219,7 @@ int main(int argc, char** argv) {
|
||||||
|
|
||||||
// Done? Print return value of executed program
|
// Done? Print return value of executed program
|
||||||
printf("\n--------------------------------");
|
printf("\n--------------------------------");
|
||||||
printf("\nProcess exited after %.4g seconds with return value %lu, %d KB mem used.\n",seconds,returnvalue,peakMemory);
|
printf("\nProcess exited after %.4g seconds with return value %d, %ld KB mem used.\n",seconds,returnvalue,peakMemory);
|
||||||
if (pauseAfterExit)
|
if (pauseAfterExit)
|
||||||
PauseExit(returnvalue,reInp);
|
PauseExit(returnvalue,reInp);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue