"GetServerTimeNow() is expensive to call compared to DateTime.now()"

From my testing, it appears that DateTime.now() is actually more expensive to call than workspace:GetServerTimeNow(). Is this accurate?
image

Page URL: https://create.roblox.com/docs/reference/engine/classes/Workspace#GetServerTimeNow

Thanks crusherfire, I did a bunch of digging here, and it seems like GetServerTimeNow() is grabbing a frequently updated local value rather than requiring any additional work from the server. I yanked that line and did some other cleanup to the documentation – should land in a week or two.

4 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.