def get_pytime():
    global _pytime
    if _pytime:
        return _pytime

    import imp
    fp, path, desc = imp.find_module('time')
    try:
        _pytime = imp.load_module('pytime', fp, path, desc)
    finally:
        if fp:
            fp.close()
    return _pytime

# thread imports
Loads the 'time' module, free of monkey patching.
dataset/ETHPy150Open ooici/pyon/pyon/util/threading.py/get_pytime