I asked this question [How do you control game speed?]http://www.java-gaming.org/topics/how-do-you-control-game-speed/32898/view.html, and it makes some ambiguity. So I changed the title as above shows.
The question is that, let me take a example, if there is a wizard and he is chanting for a spell, after 2s in real-time the spell should be completed. So how do you measure this interval. If you set down the start time st, and use current time ct to subtract st, it works. However, this implementation would influenced by lagging.
What is the better solution.