Smaller than milliseconds?
Ray G. Miller
rgmiller at pacbell.net
Fri Jul 11 17:56:01 EDT 2003
From: Dar Scott <dsc at swcp.com>
> You can get even shorter times on the longs, if you throw away the
> first long of each type. For example...
> put the long seconds into junk
> Put that just before your first use of the long seconds. Do likewise
> with other longs.
The original way:
the long seconds: 1057959579.060119 delta: 0.000009
the ticks: 63477574743 delta: 0
the milliseconds: 1057959579062 delta: 0
the long ticks: 63477574743.85434 delta: 0.000366
the long milliseconds: 1057959579065.631958 delta: 0.005981
And with "put the long <timeUnit> into junk"
the long seconds: 1057959894.692325 delta: 0.000003
the ticks: 63477593681 delta: 0
the milliseconds: 1057959894695 delta: 0
the long ticks: 63477593681.815025 delta: 0.000122
the long milliseconds: 1057959894698.46106 delta: 0.002075
the long seconds: 1057959900.740434 delta: 0.000004
the ticks: 63477594044 delta: 0
the milliseconds: 1057959900744 delta: 0
the long ticks: 63477594044.748299 delta: 0.000061
the long milliseconds: 1057959900747.609985 delta: 0.002075
Ok, who's faster now!
let's go rotate our tires....
Ray G. Miller
__________________
Turtlelips Productions
4009 Everett Ave.
Oakland, CA 94602
MailTo:rgmiller at pacbell.net
(V) 510.530.1971
(F) 510.482.3491
More information about the metacard
mailing list