Page 1 of 1

How work with "sleep" command in Eviews?

Posted: Fri Dec 20, 2013 2:10 am
by dauren
Hello!
I would like to use the "sleep" command in Eviews.
For example, look at the the following code:

Code: Select all

!sleeptime = 0.1 tic sleep(sleeptime) scalar elapsed_t = @toc toc
where elapsed_t = 5, i.e. 5 seconds.
The following code gives similar result:

Code: Select all

!sleeptime = 10000 tic sleep(sleeptime) scalar elapsed_t = @toc toc
Why?

Re: How work with "sleep" command in Eviews?

Posted: Fri Dec 20, 2013 8:58 am
by EViews Gareth
As per the Command Reference, the syntax for the sleep command is:

Code: Select all

sleep !n
Where !n is the number of milliseconds you wish EViews to pause for.

Re: How work with "sleep" command in Eviews?

Posted: Fri Dec 20, 2013 10:31 pm
by dauren
Thanks a lot, it works. But I used to read "Help" (Eviews 7 Help), where the syntax for the sleep command is:

Code: Select all

sleep(n)