in reply to Re: Net::Ping timing not correct
in thread Net::Ping timing not correct
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Net::Ping timing not correct
by BrowserUk (Patriarch) on Feb 21, 2015 at 16:29 UTC | |
Hm. Worth a try I suppose, but I wouldn't want to base any conclusions upon the accuracy of the results. From what I saw, it looks like the module predates the availability of a HiRes timer and has been (badly) adapted to use it as an afterthought. When the granularity of the timing was whole seconds, network speeds were 4MHz for LANs and 56kbps for WANs; timing all the housekeeping probably made little difference to the outcome, but now it just swamps the actual time measured. The module needs serious attention. Some of which would be fairly easy. By setting up the appropriate implementation func in new():
Then ping() can be reduced from:
To this:
And if each of the implementation funcs did the timing of the critical part and returned it, it could become:
But that would take someone with motivation to work out exactly where to start and stop the timers. Personally I don't have that motivation. A quick call out to ping.exe satisfies my needs. With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
I'm with torvalds on this
In the absence of evidence, opinion is indistinguishable from prejudice. Agile (and TDD) debunked
| [reply] [d/l] [select] |
by gepebril69 (Scribe) on Feb 21, 2015 at 17:15 UTC | |
I wish I fully understand the above..... Will stick to ping.exe until $duration makes sense again. | [reply] |
by Discipulus (Canon) on Feb 21, 2015 at 21:55 UTC | |
I'll studty your answer with care, thanks (i can only imagine if you had motivation..) L*
There are no rules, there are no thumbs.. Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS. | [reply] [d/l] |
by BrowserUk (Patriarch) on Feb 21, 2015 at 23:32 UTC | |
i can only imagine if you had motivation.. If you feel like getting your feet wet; I'm more than happy to expand upon my description above and help you (or whomever) through making the changes. What I don't have time or motivation for is the testing, packaging, uploading and ongoing support. With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
I'm with torvalds on this
In the absence of evidence, opinion is indistinguishable from prejudice. Agile (and TDD) debunked
| [reply] |