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@mail.gap-system.org http://mail.gap-system.org/mailman/listinfo/forum
_______________________________________________ Forum mailing list Forum@mail.gap-system.org http://mail.gap-system.org/mailman/listinfo/forum