GUIで時間計測のミリ秒表示を3桁にした

This commit is contained in:
lltcggie 2015-12-19 00:22:49 +09:00
parent 4d22925f0e
commit 10e5a96d3d

View File

@ -643,7 +643,7 @@ private:
const int sec = t % 60; t /= 60; const int sec = t % 60; t /= 60;
const int min = t % 60; t /= 60; const int min = t % 60; t /= 60;
const int hour = (int)t; const int hour = (int)t;
ptr += _stprintf(ptr, TEXT("処理時間: %02d:%02d:%02d.%d\r\n"), hour, min, sec, msec); ptr += _stprintf(ptr, TEXT("処理時間: %02d:%02d:%02d.%03d\r\n"), hour, min, sec, msec);
} }
{ {
@ -652,7 +652,7 @@ private:
const int sec = t % 60; t /= 60; const int sec = t % 60; t /= 60;
const int min = t % 60; t /= 60; const int min = t % 60; t /= 60;
const int hour = (int)t; const int hour = (int)t;
ptr += _stprintf(ptr, TEXT("初期化時間: %02d:%02d:%02d.%d\r\n"), hour, min, sec, msec); ptr += _stprintf(ptr, TEXT("初期化時間: %02d:%02d:%02d.%03d\r\n"), hour, min, sec, msec);
} }
if (process == "gpu" || process == "cudnn") if (process == "gpu" || process == "cudnn")
@ -662,7 +662,7 @@ private:
const int sec = t % 60; t /= 60; const int sec = t % 60; t /= 60;
const int min = t % 60; t /= 60; const int min = t % 60; t /= 60;
const int hour = (int)t; const int hour = (int)t;
ptr += _stprintf(ptr, TEXT("cuDNNチェック時間: %02d:%02d:%02d.%d"), hour, min, sec, msec); ptr += _stprintf(ptr, TEXT("cuDNNチェック時間: %02d:%02d:%02d.%03d"), hour, min, sec, msec);
} }
AddLogMessage(msg); AddLogMessage(msg);