def timesize(num, suffix='s'):
    if (num < 1.0):
        for unit in ['', 'm', 'mu', 'n']:
            if (num > 1.0):
                return ('%3.1f%s%s' % (num, unit, suffix))
            num *= 1000
        return ('%.1f%s%s' % (num, '?', suffix))
    elif (num < 600):
        return ('%3.1f%s' % (num, 's'))
    elif (num < 3600):
        num /= 60
        return ('%3.1f%s' % (num, 'min'))
    elif (num > 3600):
        num /= 3600
        return ('%3.1f%s' % (num, 'h'))
def timesize(num, suffix='s'):
    if (num < 1.0):
        for unit in [, 'm', 'mu', 'n']:
            if (num > 1.0):
                return ('%3.1f%s%s' % (num, unit, suffix))
            num *= 1000
        return ('%.1f%s%s' % (num, '?', suffix))
    elif (num < 600):
        return ('%3.1f%s' % (num, 's'))
    elif (num < 3600):
        num /= 60
        return ('%3.1f%s' % (num, 'min'))
    elif (num > 3600):
        num /= 3600
        return ('%3.1f%s' % (num, 'h'))