[GAP Forum] Save “time” in a variable in GAP

Stephen Linton sl4 at st-andrews.ac.uk
Tue Jan 5 20:41:56 GMT 2016


ConstructAllGroups(order);; a := time;

ought to work, but you might want to look into the Runtime() function to get an
interface designed more for programming.

	Steve

> On 5 Jan 2016, at 20:36, Angel Blasco <angelblascomunoz at gmail.com> wrote:
> 
> Hi,
> 
> 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?
> I did it with:
> 
>    a:=ConstructAllGroups(10);;time;
> 
> but only the groups were saved.
> 
> 
> Regards
> -- 
> *Angel Blasco.*
> _______________________________________________
> Forum mailing list
> Forum at mail.gap-system.org
> http://mail.gap-system.org/mailman/listinfo/forum




More information about the Forum mailing list