Stopwatch help needed

Godot Version

Godot 4


I want to add a StopWatch in an easy way in a 3d game. My game is about killing zombies, so to add the score, I want to add a stopwatch in it. How do I add stopwatch?

You can use Time.get_ticks_msec(). Remember the start time and subtract it from the current time.