diff options
| author | Jan Tuomi <jans.tuomi@gmail.com> | 2022-02-08 17:45:04 +0200 |
|---|---|---|
| committer | Jan Tuomi <jans.tuomi@gmail.com> | 2022-02-08 17:45:04 +0200 |
| commit | d989e1e942a77749c31e82296dd6c83a97184fd0 (patch) | |
| tree | 17061e503da4d89735fdc2e92426fdf61e91b0ad /src/Editor.tsx | |
| parent | 7a69293ba820b432ae117a2e10d943acdc627d8b (diff) | |
Show timing info
Diffstat (limited to 'src/Editor.tsx')
| -rw-r--r-- | src/Editor.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Editor.tsx b/src/Editor.tsx index 8cf6901..f549fc8 100644 --- a/src/Editor.tsx +++ b/src/Editor.tsx @@ -87,7 +87,10 @@ const Editor = () => { </div> ) case "success": { - const text = `Output:\n${result.data}` + const apiTimeMillis = (result.data.apiTime / 1000).toFixed(1) + const executionTimeMillis = (result.data.executionTime / 1000).toFixed(1) + const roundtripTime = (result.data.roundtripTime).toFixed(1) + const text = `Output:\n${result.data.result}\nTotal roundtrip time: ${roundtripTime} ms\nServer processing time: ${apiTimeMillis} ms\nExecution time: ${executionTimeMillis} ms` return ( <AceEditor mode="" |
