def get_autotest_clock(sampler):
    if pyglet.version.startswith('1.1'):
        # works with pyglet 1.1.4release
        clock = AutotestClock(sampler)
    else:
        # works with pyglet 1.2dev , branch default, 2638:ca17f2a533b7 (2012 04)
        clock = AutotestClock_12dev(sampler)
    return clock
Returns a clock object suitable to be used as a pyglet app clock, which
dataset/ETHPy150Open los-cocos/cocos/cocos/custom_clocks.py/get_autotest_clock