p94-ts/profiler.lua
loplkc 88129a87ba After further reading, re-combined the interfaces
= There wasn't really any point in trying to split the interfaces all
the way up to the top level - this is a game; it is inevitable that some object data
will change and some will stay the same
2022-07-12 11:40:04 -04:00

9 lines
No EOL
322 B
Lua

--An attempt to profile the speed of TweenService:GetValue
local TweenService = game:GetService("TweenService")
local clock = os.clock
local first = clock()
for i = 1, 500 do
local alpha = TweenService:GetValue(20/6, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut)
end
local second = clock()
print(second-first)