Hi,
I'm getting negative numbers from using $stopwatch differences, could
there be some sort of underflow problem?
What I do is a typical simulation exercise:
set stopwatch
t_sim1 = 0
loop for simrun=1..replications --quiet
<create random numbers>
loop for t=1..T --quiet
<do stuff with random numbers>
start = $stopwatch
<do more stuff>
stop = $stopwatch
<do more stuff>
t_sim1 += stop-start
end loop # t
end loop # simrun
print t_sim1
And t_sim1 is reproducibly negative.
However, in some other parts of the code, such cumulated running times
are not producing negative output, so it's more subtle. That's also the
reason why I'm not able to give you a minimal example so far, but I'll
keep trying.
Oh this is with a fairly new snapshot/cvs version, both on windows and
linux.
BTW and totally unrelated: Is it true that the user guide doesn't have a
section on plain VARs? (as opposed to the great VECM ch.)
thanks,
sven