|
|
|
Forum Member
      
Group: Forum Members
Last Login: 7/30/2007 6:06:51 PM
Posts: 25,
Visits: 36
|
|
| Hello all, I'm wondering if it is wise to use the sleep() command in time critical events... I used visual basic a few years ago and I remember being told not to use sleep() because it is inaccurate, so I wonder if it is ok to use it in e-basic.... Thanks, Guillaume
|
|
|
|
|
Forum MVP
      
Group: Administrators
Last Login: Today @ 5:00:06 PM
Posts: 569,
Visits: 1,238
|
|
| The Sleep command in E-Basic is more accurate that the Sleep command in Win32 API. You are guaranteed that the Sleep will sleep at least the amount that you specify. As with every command, you are at the will of the operating system that could pull the runtime out of the water. However, E-Prime will accurately detect this and when you log information, the Clock.Read or other values will make that known. -Brandon
|
|
|
|
|
Forum Member
      
Group: Forum Members
Last Login: 7/30/2007 6:06:51 PM
Posts: 25,
Visits: 36
|
|
Thank you for your help ! Now I won't feel bad when I use the sleep command
|
|
|
|