My aim is to speed up or slow down time.
Note: All units of time in double quotes ("some time") are NOT real units of time. They are notional units of time.
I want to make a clock which is runs exactly like a regular clock, except that 250 milliseconds = 1 "second", 60 "seconds" or rather 250 * 60 milliseconds = 1 "minute" etc. I also want to be able to change this clock to use any another value of milliseconds as 1 second eg 1000 (normal,real world time) , 6000 ms (ie 6 sec = 1 "sec") etc.
Is there any reliable API or code to do this ? If not, then how do I do it ?
I saw a question on SO, but did not get any code, API or suggestions on how to implement such a clock or what could be the potential problems in such a clock - Java - Creating an Internal Clock
That post talks about callback, but I don't know if its the best and problem free way to make my clock.