Package bpm :: Module debug
[hide private]
[frames] | no frames]

Source Code for Module bpm.debug

 1  import sys 
 2  import time 
 3   
 4  from bpm import conf 
 5   
 6  init = time.time() 
 7   
8 -def echotime(msg):
9 print msg, time.time() - init, 'seconds'
10
11 -def echo(msg, newline='\n'):
12 if conf.verbose: 13 print '%s%s' % (msg, newline), 14 sys.stdout.flush()
15
16 -def progress(msg):
17 echo('\r%s' % msg, newline='')
18