Manager: show progress rate in task properties.

E.g. show that task is progressing at 5% per hour.
Use the largest time scale (hour, min, sec)
for which the rate is < 100%.

This can be used, e.g. to compare the speed of different
GPUs or app versions for similar jobs.
This commit is contained in:
David Anderson 2015-06-22 00:53:49 -07:00
parent 53a550fef5
commit 681d0e9a1f
1 changed files with 11 additions and 0 deletions

View File

@ -392,6 +392,17 @@ void CDlgItemProperties::renderInfos(RESULT* result) {
if (result->pid) {
addProperty(_("Process ID"), wxString::Format(wxT("%d"), result->pid));
}
if (result->progress_rate) {
// express rate in the largest time unit (hr/min/sec) for which rate < 100%
//
if (result->progress_rate*3600 < 1) {
addProperty("Progress rate", wxString::Format(wxT("%f %% per hour"), 100*3600*result->progress_rate));
} else if (result->progress_rate*60 < 1) {
addProperty("Progress rate", wxString::Format(wxT("%f %% per minute"), 100*60*result->progress_rate));
} else {
addProperty("Progress rate", wxString::Format(wxT("%f %% per second"), 100*result->progress_rate));
}
}
} else if (result->state >= RESULT_COMPUTE_ERROR) {
addProperty(_("CPU time"), FormatTime(result->final_cpu_time));
addProperty(_("Elapsed time"), FormatTime(result->final_elapsed_time));