Sponsored links: Algebra eBooks
 

Related

timer_info

f() := 2^200000;

timer_info(f);

Calculate

timer_info

? timer_info;

Calculate

timer_info

f() := 2^200000;

timer_info(f);

Calculate

timer_info

? timer_info;

Calculate

timer_info

Run Example
(%i1)f_1:factor(1232424234234234242342342423424);
                    7  3
(%o1)              2  3  23 12263 33427 3678973 10281060851
(%i2) f_2:factor(343432424234234234234242342343234);
(%o2)               2 43 20718113411 192749223955554749729
(%i3) Function: timer_info (f_1,f_2) ;
               [ function  time//call  calls  runtime  gctime ]
(%o3)          [                                              ]
               [  total        0         0       0       0    ]
(%i4) timer(f_1,f_2);
trace: f_1 has no functional properties.
trace: f_2 has no functional properties.
(%o4)                                 []
(%i5) 
Run Example
f_1:factor(1232424234234234242342342423424);
                    7  3
(%o1)              2  3  23 12263 33427 3678973 10281060851
(%i2) f_2:factor(343432424234234234234242342343234);
(%o2)               2 43 20718113411 192749223955554749729
(%i3) Function: timer_info (f_1,f_2) ;
               [ function  time//call  calls  runtime  gctime ]
(%o3)          [                                              ]
               [  total        0         0       0       0    ]
(%i4) 
Run Example
? timer_info;

 -- Function: timer_info (<f_1>, ..., <f_n>)
 -- Function: timer_info ()
     Given functions <f_1>, ..., <f_n>, `timer_info' returns a matrix
     containing timing information for each function.  With no
     arguments, `timer_info' returns timing information for all
     functions currently on the timer list.

     The matrix returned by `timer_info' contains the function name,
     time per function call, number of function calls, total time, and
     `gctime', which meant "garbage collection time" in the original
     Macsyma but is now always zero.

     The data from which `timer_info' constructs its return value can
     also be obtained by the `get' function:

          get(f, 'calls);  get(f, 'runtime);  get(f, 'gctime);

     See also `timer'.


(%o1)                                true
(%i2) 

Related Help

Help for Timer_info