def print_time(secs):
    if secs < 120.:
        return '%6.3f sec' % secs
    elif secs <= 60 * 60:
        return '%6.3f min' % (secs / 60.)
    else:
        return '%6.3f h  ' % (secs / 3600.)
dataset/ETHPy150Open pascanur/GroundHog/groundhog/utils/utils.py/print_time/original