How to detect the last time Heartbeat event has fired?

I want to know how long the last time game:GetService(“RunService”).Heartbeat
has fired. Is there any easy way I can do this?

game:GetService("RunService").Heartbeat:Connect(function(DeltaTime)

end)
1 Like

DeltaTime is basically the last time Heartbeat event has fired?

It is basically

tick() - lastfiredtick

1 Like

Its basically the gap between the old and current heart beat

1 Like