From 7cc1866863ad130d1fe76cf7617e1d4b917bb9f3 Mon Sep 17 00:00:00 2001 From: Bill Thiede Date: Wed, 16 Oct 2019 21:43:25 -0700 Subject: [PATCH] Print runtime. --- src/App.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index 903ec84..0b80ad5 100644 --- a/src/App.js +++ b/src/App.js @@ -41,6 +41,7 @@ class App extends React.Component { y, zoomFactor, } = this.state; + let appContent =

Loading

; if (data !== null) { let {ratio, timestamp, images, size} = data; let width = 512; @@ -90,6 +91,7 @@ class App extends React.Component {

{name}

) }); + appContent =

Run @ {new Date(timestamp * 1000).toLocaleString()}

{imgs}
; } return (
@@ -109,7 +111,7 @@ class App extends React.Component { {zoomFactor}
- {imgs} + {appContent}
);