Jump to content

miliSecond Timer...?


Nikow
 Share

Recommended Posts

Hi, 

 

I've to create a miliseconds timer. It will have this format : SS:mSmS (02:52 for exemple)

 

S : seconds, mS : milliSeconds.

 

How can i create it ? (i need to have real milliseconds and seconds) ...

Link to comment
Share on other sites

take a look at this example http://phaser.io/examples/v2/time/custom-timer it shows a timer that is updated every 2 seconds, you could tweak it to get what you want (theoretically).

But since this is JavaScript, most browsers won't give you hand on the ticker every millisecond. some info could be found here http://stackoverflow.com/questions/9647215/what-is-minimum-millisecond-value-of-settimeout

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...