diff options
| author | TJ DeVries <devries.timothyj@gmail.com> | 2020-09-29 22:52:38 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-29 22:52:38 -0400 |
| commit | ae7fd0d27a72fa3088e84992eb5040853164dad6 (patch) | |
| tree | 8b2ecd59ffee6c00fa8fee5f2b570edee5da8724 /scratch/how_long_does_time_take.lua | |
| parent | 2ce23696de096733e32135b2f9698a9cca6fdcd4 (diff) | |
feat: Add status, better debug, and some associated refactors
* [WIP]: Mon 28 Sep 2020 01:08:24 PM EDT
* add much much better tracking. so much less hax
* status updates, oneshot job updates, etc.
* remove temp function
* add status function
* asdfasdfasdf
Diffstat (limited to 'scratch/how_long_does_time_take.lua')
| -rw-r--r-- | scratch/how_long_does_time_take.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scratch/how_long_does_time_take.lua b/scratch/how_long_does_time_take.lua new file mode 100644 index 0000000..a77e47b --- /dev/null +++ b/scratch/how_long_does_time_take.lua @@ -0,0 +1,8 @@ +local start = vim.loop.hrtime() + +local counts = 1e6 +for _ = 1, counts do + local _ = vim.loop.hrtime() +end + +print(counts, ":", (vim.loop.hrtime() - start) / 1e9) |
