[GAP Forum] Save “time” in a variable in GAP
Angel Blasco
angelblascomunoz at gmail.com
Tue Jan 5 20:52:06 GMT 2016
thanks
2016-01-05 21:43 GMT+01:00 Alexander Hulpke <hulpke at math.colostate.edu>:
> > 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: hulpke at math.colostate.edu, Phone: ++1-970-4914288
> http://www.math.colostate.edu/~hulpke
>
>
>
--
*Angel Blasco.*
More information about the Forum
mailing list