diff options
Diffstat (limited to 'src/lib/transcode_job.cc')
| -rw-r--r-- | src/lib/transcode_job.cc | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/lib/transcode_job.cc b/src/lib/transcode_job.cc index 6b1563b9b..653040f4c 100644 --- a/src/lib/transcode_job.cc +++ b/src/lib/transcode_job.cc @@ -119,19 +119,14 @@ TranscodeJob::run () } } - struct timeval start; - gettimeofday (&start, 0); LOG_GENERAL_NC (N_("Transcode job starting")); DCPOMATIC_ASSERT (_encoder); _encoder->go (); - struct timeval finish; - gettimeofday (&finish, 0); - float fps = 0; - if (finish.tv_sec != start.tv_sec) { - fps = _encoder->frames_done() / (finish.tv_sec - start.tv_sec); + if (_finish_time != _start_time) { + fps = _encoder->frames_done() / (_finish_time - _start_time); } LOG_GENERAL (N_("Transcode job completed successfully: %1 fps"), dcp::locale_convert<string>(fps, 2, true)); |
