Elapsed milliseconds since start of level
I need to get the time in milliseconds elapsed since the start of the level.
Is there a way to access to this in a more simple way than managing a global-ish timer as a chronometer?
asked Feb 02 '15 at 07:09 PM in C++ Programming
Yes, you can use the following :
Basically, the UGameplayStatics class contains lots of neat stuff, and 2 or 3 other useful function regarding time.
If you want to get that in hours/minutes/seconds, you can use the FTimespan structure.
You can initialiaze the struct like so :
Then you can use that struct to extract the time the way you want.
Hope this helps!
Also you can use
It returns at least milliseconds at last microseconds
answered Sep 21 '15 at 08:18 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here