> I'm trying to write a program in GAP to obtain the time that GAP needs to
> construct the groups of an order given. I'm using the command:
> 
>    ConstructAllGroups(order);;time;
> 
> Is there anyway to save the value of "time" in a variable?

Yes, time is just like a variable (this is different to the time command in 
unix and other systems):

   a:=ConstructAllGroups(10);;savedtime:=time;

Within a program I would rather refer to the value of Runtime(), that is:

start:=Runtime();
a:=ConstructAllPiffles(-33);
total:=Runtime()-start;

Best,

  Alexander Hulpke

-- Colorado State University, Department of Mathematics,
Weber Building, 1874 Campus Delivery, Fort Collins, CO 80523-1874, USA
email: hul...@math.colostate.edu, Phone: ++1-970-4914288
http://www.math.colostate.edu/~hulpke



_______________________________________________
Forum mailing list
Forum@mail.gap-system.org
http://mail.gap-system.org/mailman/listinfo/forum

Reply via email to