I need to program some time consuming codes. I usually set a counter
for the loops, for example "i=1; while p list x do (i=i+1; ...)", then
after one or two days, I press Ctrl+C to stop it, check how many loops
it works, then resume. To do this, I always need to set several new
variables to store the status of each step. And I have to write down
the initial time myself.
Is there anyway to track the number of repetition and track the time
consumed automatically, without interrupting the running? For example,
can we ask the program to print the time whenever it passes 1 hour or
1 day, or print the number of repetition whenever it does 10^6 times?
Thank you very much for your time and help.
--
You received this message because you are subscribed to the Google Groups "Macaulay2" group.
To post to this group, send email to
maca...@googlegroups.com.
To unsubscribe from this group, send email to
macaulay2+...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/macaulay2?hl=en.