It is not a rounding problem. The error gets increasingly longer at a rate of several seconds per hour.
This is on Windows 98. I don't see how it could be a granularity issue. The problem is that the error keeps accumulating.
Using your code, I was able to preproduce the problem:
Core : 1081092725
HiRes: 1081092725.097
Core : 1081092785
HiRes: 1081092785.098
Core : 1081092849
HiRes: 1081092845.099
Core : 1081092908
HiRes: 1081092905.1
Core : 1081092968
HiRes: 1081092965.105
Core : 1081093029
HiRes: 1081093025.106
Core : 1081093088
HiRes: 1081093085.162
Here it shows a discrete jump of about 4 seconds. No idea why.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.