magician13134 Posted February 26, 2007 Share Posted February 26, 2007 Ok, I know there's a TimerInit and stuff to measure how long something took, but other than using the system clock is there anyway to stop a script o do a certain function after a given amount of time? Thanks Visit Magic Soft Inc. for some of my software Link to comment Share on other sites More sharing options...
improbability_paradox Posted February 26, 2007 Share Posted February 26, 2007 (edited) By definition, I would have to say no. You want to know when a certain amount of TIME has passed, but don't want to use the system CLOCK? Why not? Isn't its very purpose to do just that? Although I suppose if you don't want to use the SYSTEM clock you can refer to another source, such as one on the internet. But why? I do not know of any other method which could be considered 99% reliable at this. Edit: if you are just looking for other ways of doing the same, though, you could try Adlibenable(). It allows you to run a function (which could be as simple as exiting the script, if you wanted) at given intervals, and could be an alternative to TimerInit()/TimerDiff() (depending on what you want to do) Edited February 26, 2007 by improbability_paradox Link to comment Share on other sites More sharing options...
Sykeo Posted February 26, 2007 Share Posted February 26, 2007 Look into AdlibEnable/AdlibDisable It pause any 'main' part of the script to execute a function with a interval. Link to comment Share on other sites More sharing options...
magician13134 Posted March 5, 2007 Author Share Posted March 5, 2007 Ooh, yeah, I forgot about adlib... does the speed of the computer greatly affect that? If it was every 1000ms for say, 5 minutes, would there be a noticeable difference between a fast or slow computer? I don't want to use the system clock due to the fact that it is so easy to change. Thanks for the ideas. Visit Magic Soft Inc. for some of my software Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now