diff options
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) |
