Message88622
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. |
|
Date |
User |
Action |
Args |
2009-05-31 23:39:27 | MrJean1 | set | recipients:
+ MrJean1, gregory.p.smith, pitrou, alexandre.vassalotti |
2009-05-31 23:39:27 | MrJean1 | set | messageid: <1243813167.21.0.371753019021.issue2281@psf.upfronthosting.co.za> |
2009-05-31 23:39:25 | MrJean1 | link | issue2281 messages |
2009-05-31 23:39:25 | MrJean1 | create | |
|