Hey, I'm using EViews 7.
Is there any command that returns computing time needed, i.e. to solve a MLE using a logl object?
I've got the feeling that my program is very slow and I'd like to compare different versions of my program regarding computing time.
Thanks.
computing time
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13603
- Joined: Tue Sep 16, 2008 5:38 pm
computing time
Look up "tic" and "toc"
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13603
- Joined: Tue Sep 16, 2008 5:38 pm
Re: computing time
I gave the previous response via my phone - hence its short nature.
I find the best way to use tic and toc is to save the toc into a scalar variable rather than just use it to send stuff to the statusline. It can be tricky to organise your program so that toc displays on the statusline, especially if you're using subroutines. If you save it into a scalar, you can then open that scalar up and view it whenever you want.
Thus:
I find is better than simply:
I find the best way to use tic and toc is to save the toc into a scalar variable rather than just use it to send stuff to the statusline. It can be tricky to organise your program so that toc displays on the statusline, especially if you're using subroutines. If you save it into a scalar, you can then open that scalar up and view it whenever you want.
Thus:
Code: Select all
tic
'some code here
scalar time = @toc
Code: Select all
tic
'some code here
toc
Who is online
Users browsing this forum: No registered users and 2 guests
