02-20-2008 08:43 PM
02-21-2008 04:50 PM
You're right in that clock() can't be nested thus it does not gaurantee correct results across a script. That use case was obviously not considered.
I don't see why using clock({time}) is "not right". Yes, you'll have to compute a delta-t to get an accurate elapsed time, but unless you expect durations of more than 24 hrs, it's a pretty simple thing to do.
If you think that you need a bullet-proof mechanism, or you need more accurate resolution on your time, there's always the option of writing you're own LNX that you use to compute the elapsed time as you need it to be done. Maybe use oscmd commands to a perl script (or other script language) that can compute time differences easily would work just as well too. Either way, there's some programming involved.
Bob Pizzi
MATRIXx R&D
02-24-2008 07:50 PM