def perf_clock():
    """
    Backwards compatibility wrapper for system clock.
    """
    try:
        from time import perf_counter as clock
    except ImportError:
        from time import clock
    finally:
        wclock = clock()
    return wclock
