Find and Replace Results Showing Speed = 0

Started by Arthur, March 10, 2009, 07:16:32 PM

Previous topic - Next topic

Arthur

Not sure if this requires attention (e.g. a bug), but I am reporting anyways:

Worked on a file and did some Find 'n Replace. The tab at the bottom Find Results 2 showed:

Matching lines:      2  Matching files:      1  Files searched:     1  Elapsed: 00:00:00    Speed: 0.00 Mb/s

I checked, and the size of replaced text was 1.1 Kb, so the line below should be like:

Matching lines:     2.  Matching files:     1.  Files searched:    1. Time Elapsed: 00:00:01    Speed: 0.01 Mb/s

Please also note my suggested formatting in bold.

alex

Hello Arthur,

windows time tickers are not really precise. So some time it can happen, that if you take time in beginning of the operation and once more at the end, the difference would be 0 (if operation was fast).

If something like this happen, then you would get results as you have shown.
And because time is 0, then speed is infinate :)

I would check what is possible, but would not spent too much time. Mostly you need this information, if search longs sugnificant time, and in this case time would not be 0.
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

Arthur

Not sure why then I get:

Matching lines:     42  Matching files:      1  Files searched:     1  Elapsed: 00:00:00    Speed: 0.64 Mb/s

alex

:))

Yes this is strange :)

But because measurements are done in milliseconds (1 sec == 1000 msec), then can be that rouding of something like 450 msec would be 0 seconds...

Maybe correct way would be to switch to msed display if search has taken less then 1 sec.
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

Stefan

Beta 1.42 Build 637

Fixed. Displaying of speed results for search beautified to work also with msec.
Stefan, HippoEDIT beta tester 
HippoEDIT - the editor programmers wants to code thyself when they are dreaming.        -Don't just edit. HippoEDIT!-