Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/pybin/tools.py

    r76de075 r136f86b  
    387387                while True:
    388388                        yield i.next(max(expire - time.time(), 0))
    389 
    390 def fmtDur( duration ):
    391         if duration :
    392                 hours, rem = divmod(duration, 3600)
    393                 minutes, rem = divmod(rem, 60)
    394                 seconds, millis = divmod(rem, 1)
    395                 return "%2d:%02d.%03d" % (minutes, seconds, millis * 1000)
    396         return " n/a"
Note: See TracChangeset for help on using the changeset viewer.