Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Buzzafett

Accurate Timer Using Timekeeper Class

Recommended Posts

Hi, does anyone have any experience with creating an accurate timer in AS3?

I have used the Timer class and also setInterval in conjunction with my TweenMax project but none are very accurate.

 

I have been reading about the Timekeeper class, but don't know exactly how to use it.

http://www.computus.org/journal/?p=25

Link to comment
Share on other sites

When you say "none are very accurate", could you describe what you mean? Are you saying that you need something to get called at a particular interval, but when the Flash Player bogs down due to other processing, sometimes those intervals widen?

 

Also, could you explain WHY you need more accuracy? I'm a little concerned that you might be heading down a road that is ultimately very wasteful or pointless - if you need to check timing accurately, you shouldn't be relying on a specific interval anyway. It's much better to use something like getTimer() and compare it to a value you recorded when you started.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×