src/s/i/signedimp-HEAD/signedimp/bootstrap.py signedimp(Download)
def start_timer(msg,*args):
if __debug__ and signedimp_debug:
msg = msg % args
msg += " [%.2f secs]" % (time.clock(),)
_signedimp_util.debug(msg)
_signedimp_util._timers.append([time.besttime()])
@staticmethod
def checkpoint_timer(msg,*args):
if __debug__ and signedimp_debug:
now = time.besttime()
def stop_timer(msg,*args):
if __debug__ and signedimp_debug:
now = time.besttime()
tl = _signedimp_util._timers.pop()
msg = msg % args
msg += " [%.2f of %.2f secs]" % (now - tl[0],time.clock(),)
_signedimp_util.debug(msg)
src/s/i/signedimp-0.3.0/signedimp/bootstrap.py signedimp(Download)
def start_timer(msg,*args):
if __debug__ and signedimp_debug:
msg = msg % args
msg += " [%.2f secs]" % (time.clock(),)
_signedimp_util.debug(msg)
_signedimp_util._timers.append([time.besttime()])
@staticmethod
def checkpoint_timer(msg,*args):
if __debug__ and signedimp_debug:
now = time.besttime()
def stop_timer(msg,*args):
if __debug__ and signedimp_debug:
now = time.besttime()
tl = _signedimp_util._timers.pop()
msg = msg % args
msg += " [%.2f of %.2f secs]" % (now - tl[0],time.clock(),)
_signedimp_util.debug(msg)