TGB Engine questions. Get time in milliseconds.
by Peterjohn Griffiths · in Technical Issues · 05/11/2011 (10:36 am) · 2 replies
I want to do a few things in the TGB engine and it has been several years since I last used C++.
I have managed to get the TGB engine to compile.
What I need is a function that returns the time in milliseconds so I can calculate something based on the time taken since the last time it was run.
This can be the full time in milliseconds or the number of milliseconds since the engine started, so long as it is accurate.
I want this to keep all things nice and smooth, even if there is a bit of physics lag between frames so I can take this lag into consideration when doing calculations.
I have looked around but can't seem to find it.
I will continue to look but if you happen to know, please help.
Many thanks in advance.
I have managed to get the TGB engine to compile.
What I need is a function that returns the time in milliseconds so I can calculate something based on the time taken since the last time it was run.
This can be the full time in milliseconds or the number of milliseconds since the engine started, so long as it is accurate.
I want this to keep all things nice and smooth, even if there is a bit of physics lag between frames so I can take this lag into consideration when doing calculations.
I have looked around but can't seem to find it.
I will continue to look but if you happen to know, please help.
Many thanks in advance.
Torque 3D Owner Aun Taraseina