Value function approximation and collocation method

 

To measure the time, we can use hsec command in GAUSS. The keyword command

 

returns the hundredth of a second since midnight. We can count how much time

 

it takes in the following way:

 

 

 

new; cls;

dt0=hsec;

 

(     program lines    )

 

dt=hsec;

print dt-dt0;

 

 

 

 

or we could set

 

print (dt-dt0)/100;

 

in terms of seconds.