How to see how long it takes for the game to load

Im making a tween and I want the time to be how long it takes the game to load.
Would I have something like this?

game:IsLoaded():Wait()

I honestly don’t know.

I did this

  print(wait(game:IsLoaded()))

and it printed

0.1964788999976 54627.93359375
 -- localscript in ReplicatedFirst, event fires on client

  local t = tick()
  
  if not game:IsLoaded() then game.Loaded:Wait() end
  print("loaded", (tick() - t)*10^3, "ms")
2 Likes