Author: Philip Jenvey <pjen...@underboss.org> Branch: py3k-get_clock_info Changeset: r84798:3662c940f099 Date: 2016-05-28 01:07 -0700 http://bitbucket.org/pypy/pypy/changeset/3662c940f099/
Log: woops diff --git a/pypy/module/time/interp_time.py b/pypy/module/time/interp_time.py --- a/pypy/module/time/interp_time.py +++ b/pypy/module/time/interp_time.py @@ -582,7 +582,7 @@ if ret == 0: if w_info is not None: with lltype.scoped_alloc(TIMESPEC) as tsres: - ret = c_clock_gettime(cConfig.CLOCK_REALTIME, tsres) + ret = c_clock_getres(cConfig.CLOCK_REALTIME, tsres) if ret == 0: res = _timespec_to_seconds(tsres) else: @@ -897,7 +897,7 @@ w_result = clock_gettime(space, clk_id) if w_info is not None: with lltype.scoped_alloc(TIMESPEC) as tsres: - ret = c_clock_gettime(clk_id, tsres) + ret = c_clock_getres(clk_id, tsres) if ret == 0: res = _timespec_to_seconds(tsres) else: @@ -958,7 +958,7 @@ if ret == 0: if w_info is not None: with lltype.scoped_alloc(TIMESPEC) as tsres: - ret = c_clock_gettime(clk_id, tsres) + ret = c_clock_getres(clk_id, tsres) if ret == 0: res = _timespec_to_seconds(tsres) else: _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit