Orca Posted September 20, 2005 Share Posted September 20, 2005 Okay so I have a task parsing a bit of data every fraction of a milisecond. Its going to do about 200,000 of these tasks (parsing a data file into XML that is larger than 5mb) Now I know I COULD check the clock, but that only reads out in seconds (@SEC)... And would give a very unaccurate measure of how long it might take (time to process one line) * totalLines = totalTime I COULD go about it by counting how many it can process in one second totalLines / (numberInOneSecond) = totalSeconds But that would require extra processing I really don't feel like adding, as it may harm performance (hey when you compound .5 ms 2 million times it adds up... (I believe it tacks on like 15 minutes? maybe my math is off... (0.5*(2*10^7) / 1000)/60 = n minutes?) Anyhow I'd like to be able to do something like $startTime = microTime() while 1 ... wend $endTime = microTime() $executeTime = $endTime - $startTime (microTime() could aslo be @microTime) Is there a way to do this? I AM ORCA!! A VERY POWERFUL WHALE!!! Link to comment Share on other sites More sharing options...
LxP Posted September 20, 2005 Share Posted September 20, 2005 Do the TimerInit() and TimerDiff() functions satisfy your needs? Link to comment Share on other sites More sharing options...
Orca Posted September 20, 2005 Author Share Posted September 20, 2005 Do the TimerInit() and TimerDiff() functions satisfy your needs?That works splendidly, I'm suprised I missed it... Guess I was too caught up in looking for my familiar microTimer functions I AM ORCA!! A VERY POWERFUL WHALE!!! 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