Re: Messages with a time stamp

2015-05-03 Thread Cecil Westerhof
Op Sunday 3 May 2015 11:36 CEST schreef Mark Lawrence: > Rather than reinvent the wheel maybe you can pinch something from > here > https://docs.python.org/3/howto/logging-cookbook.html#logging-to-multiple-destinations That looks very promising. The only problem could be that it seems not to have

Re: Messages with a time stamp

2015-05-03 Thread Mark Lawrence
On 03/05/2015 09:22, Cecil Westerhof wrote: For testing I want my messages time stamped like: 02:06:32: Check that the non recursive variants give the same value from 1000 upto 10 step 1000 02:06:32: Currently at1000 02:06:33: Currently at 11000 02:06:35: Currently

Re: Messages with a time stamp

2015-05-03 Thread Michiel Overtoom
On May 3, 2015, at 10:22, Cecil Westerhof wrote: > For testing I want my messages time stamped like: For progress reporting, I often use the module below (eta.py), which also gives a projected time of completion: import datetime, time, sys etastart = 0 def eta(done, total, s, reportinterval=1

Messages with a time stamp

2015-05-03 Thread Cecil Westerhof
For testing I want my messages time stamped like: 02:06:32: Check that the non recursive variants give the same value from 1000 upto 10 step 1000 02:06:32: Currently at1000 02:06:33: Currently at 11000 02:06:35: Currently at 21000 02:06:42: Currently at 31000