+1 vote

Hi, is possible to create stopwatch with precision milliseconds in godot? I tried to use timer node with lowest value, but it was slower than real time. I found just this: https://godotengine.org/qa/3641/how-display-elapsed-time-in-game But i need it in milliseconds, because it is for racing game... Does anyone know how to do it?

in Engine by (61 points)

1 Answer

+2 votes
Best answer

Look here: http://docs.godotengine.org/en/3.0/classes/class_os.html#class-os-get-ticks-msec

There is this function: get_ticks_msec()

Maybe it will suit Your needs.

by (241 points)
selected by

Thank You, I forgot about this, i found it in the morning and closed with hope that will be better solution. Maybe it is the best option for it…

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.