From 97dfab5702135bed0a69594de33fcc776f7a4a47 Mon Sep 17 00:00:00 2001 From: Logen Kain Date: Mon, 25 Sep 2017 05:18:21 -0700 Subject: [PATCH] lua:fps --- lua/fps/main.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 lua/fps/main.lua diff --git a/lua/fps/main.lua b/lua/fps/main.lua new file mode 100644 index 0000000..e2fef89 --- /dev/null +++ b/lua/fps/main.lua @@ -0,0 +1,10 @@ +fps = 0 +time = os.time() +while true do + if os.time() - time > 1 then + print (fps) + break + end + fps = fps + 1 + +end