[GAP Forum] command to retrieve current date/time
Sandeep Murthy
sandeepr.murthy at gmail.com
Sun Nov 25 12:59:36 GMT 2012
Hi,
It seems an example is given on p. 148 of the GAP Reference
Manual, using the Process function to call the OS date/time
function. I guess, you could do something like this ...
gap> date := Filename( DirectoriesSystemPrograms(), "date" );
gap> startTime := ""; a := OutputTextString( startTime, true );
gap> Process( DirectoryCurrent(), date, InputTextNone(), a, [] );
.... your computations ...
gap> currTime := ""; b := OutputTextString( currTime, true );
gap> Process( DirectoryCurrent(), date, InputTextNone(), b, [] );
gap> startTime; currTime;
Sincerely, Sandeep.
Frederic Vanhove wrote:
> Hello,
>
> I was wondering if there is any way to let GAP return the current date
> or time.
>
> I know that using
> time;
> one can get the number of milliseconds the last operation took.
>
> However, I would like to do a long computation, and I would want GAP to
> print from to time what he has done already and how long that has
> already taken.
>
> Is that possible?
>
> Many thanks,
> Kind regards,
> Frédéric
>
> _______________________________________________
> Forum mailing list
> Forum at mail.gap-system.org
> http://mail.gap-system.org/mailman/listinfo/forum
More information about the Forum
mailing list