If you check for how much time has passed.
Since a simple if is incredibly fast you would check thousands of times per second, thats very inefficient use of CPU cycles.
After you checked how much...
Type: Posts; User: Cornix
If you check for how much time has passed.
Since a simple if is incredibly fast you would check thousands of times per second, thats very inefficient use of CPU cycles.
After you checked how much...
Your code does not work at all.
If you create a Date object it will not start counting up. It will always return the same time when you call the getTime() method.
There is 2 ways you can do it,...