This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author MrJean1
Recipients MrJean1, alexandre.vassalotti, gregory.p.smith, pitrou
Date 2009-05-31.23:39:24
SpamBayes Score 9.82913e-10
Marked as misclassified No
Message-id <1243813167.21.0.371753019021.issue2281@psf.upfronthosting.co.za>
In-reply-to
Content
Another thought on the hires timer to make the hires time and hires time 
units available as 2 other functions in the time module.

For example, function time.ticks() returns the hires time stamp as an 
int.  Function time.ticks2secs(t) converts a given number of ticks to 
seconds.

To avoid duplicating the hires time code in both the time and profile 
modules, it would be necessary to move the hpTimer and hpTimerUnit 
functions to some place inside the Python core accessible for the time 
and profile modules.  Perhaps to a new file, say Python/gethptime.c.

That new file can handle other platform-specific idiosyncrasies with 
respect to hires time.  In particular, it could implement a different 
(and better) way to determine the resolution of a hires tick, e.g. on 
Linux and BSD Unix.
History
Date User Action Args
2009-05-31 23:39:27MrJean1setrecipients: + MrJean1, gregory.p.smith, pitrou, alexandre.vassalotti
2009-05-31 23:39:27MrJean1setmessageid: <1243813167.21.0.371753019021.issue2281@psf.upfronthosting.co.za>
2009-05-31 23:39:25MrJean1linkissue2281 messages
2009-05-31 23:39:25MrJean1create