So in my game I have:
seconds = ((elapsed - now) / 1.0E9F);
Where elapsed and now are System.nanoTime(); called at different places in the code.
Then I convert this into a string and show it to the users. Based off of this code, I also have a countdown.
I want to slow down this countdown on occasion but I can’t conceptualize how I’d do that.
Can anyone help me?
This is not Java, but might help you as anyways C# syntax ain’t much different from java 😛
http://blog.gallusgames.com/programming/a-custom-game-clock-in-csharp