| Karim Belabas on Mon, 19 Oct 2009 09:10:39 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
| Re: Calculating powmod... |
* David Cleaver [2009-10-19 07:25]:
> Also, is there a way to print out timing information at the end of a
> program? I know that when a "program" I've written finishes, I can do a ##
> to see how long it took to run. But, I'd like to somehow put that command
> into the program. When I tried "##" or "##;", it said "unexpected
> character(s)" and pointed to right after the "##".
## is a "keyboard shortcut", only valid in the command-line gp interpreter.
Have a look at gettime() for a more flexible equivalent.
You may also set a timer on by default : default(timer, 1) in a program,
or even timer = 1 in your .gprc
Cheers,
K.B.
--
Karim Belabas, IMB (UMR 5251) Tel: (+33) (0)5 40 00 26 17
Universite Bordeaux 1 Fax: (+33) (0)5 40 00 69 50
351, cours de la Liberation http://www.math.u-bordeaux1.fr/~belabas/
F-33405 Talence (France) http://pari.math.u-bordeaux1.fr/ [PARI/GP]
`