Display more accurate time in demo app

PiperOrigin-RevId: 558077709
This commit is contained in:
claincly 2023-08-18 09:43:23 +01:00 committed by Julia Bibik
parent 02b347ac66
commit c6804e40a3
2 changed files with 5 additions and 2 deletions

View File

@ -688,7 +688,10 @@ public final class TransformerActivity extends AppCompatActivity {
private void onCompleted(Uri inputUri, String filePath) {
exportStopwatch.stop();
informationTextView.setText(
getString(R.string.export_completed, exportStopwatch.elapsed(TimeUnit.SECONDS), filePath));
getString(
R.string.export_completed,
exportStopwatch.elapsed(TimeUnit.MILLISECONDS) / 1000.f,
filePath));
progressViewGroup.setVisibility(View.GONE);
debugFrame.removeAllViews();
inputCardView.setVisibility(View.VISIBLE);

View File

@ -42,7 +42,7 @@
<string name="debug_preview_not_available" translatable="false">No debug preview available.</string>
<string name="export_started" translatable="false">Export started</string>
<string name="export_timer" translatable="false">Export started %d seconds ago.</string>
<string name="export_completed" translatable="false">Export completed in %d seconds.\nOutput: %s</string>
<string name="export_completed" translatable="false">Export completed in %.3f seconds.\nOutput: %s</string>
<string name="export_error" translatable="false">Export error</string>
<string name="trim_range">Bounds in seconds</string>
<string-array name="color_filter_options">