Replace tick() with os.clock()#47
Conversation
|
On a side note, could you tell me how to upload files in a commit that fits the format of this codebase? I would like to implement a Signal library to replace BindableEvents for performance reasons, but I'm not sure how I would add the Signal module. Sources: https://devforum.roblox.com/t/lua-signal-class-comparison-optimal-goodsignal-class/1387063 |
You would add a Additionally, you could just add this to src: https://gist.github.com/stravant/b75a322e0919d60dde8a0316d1f09d2f |
Signed-off-by: Ryan Luu <ryan.luu@ryanluu.dev>
Description
Improved code by removing deprecated objects
Changes Made
Replaced
tick()withos.clock()Checklist
Additional Notes
Talks about why tick() is deprecated: https://devforum.roblox.com/t/luau-recap-june-2020/632346
In my testing
tick()is also less performant, taking more time to get the current time.Code of Conduct
By submitting this issue, I agree to follow the Code of Conduct.