ThreadBoard ArchivesSite FeaturesActiveworlds SupportHistoric Archives |
aw_wait() (Sdk)
aw_wait() // Sdkagent1Jun 12, 2000, 7:35pm
Is the aw_wait function guarateed to run at a certain speed?
EX: Would aw_wait(1000) wait for one second in almost all instances? -Agent1 faberJun 14, 2000, 3:44pm
No.
aw_wait() passes the given value to the system call select(), which returns earlier than specified if anything happens on the sockets its applied to. Since I doubt that aw_wai() issues another select() for the remaining time, you can expect aw_wait() to return earlier whenever the is any activity around your bot avatar. (earlier as in not even close to the given time). Only in complete quiet areas it might reach the 1000. But even then do not expect accuracy from it. Faber [View Quote] |