-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PingSummary shows unexpected duration #58
Comments
Here is the output if I run the equivalent command on a terminal within the android emulator:
Notice that they have very similar timings and that the summary shows a total time of 4014. This is using the native ping binary in the Android OS, not using my library or any dart/flutter code at all. The reason for this is that the version of If you would like to reproduce this yourself, you can install a terminal emulator (such as Termux) on your Android system and run this command: This is equivalent to the final ping = Ping(google.com, count: 5);
print(ping.command); // Displays the exact command that will be run in a background shell / process |
I see, thanks for pointing this out. I ran the command on my MacOS terminal and it does not show the total time this way. Is it possible, using a custom parser for example, to grab the last line that shows the min/max/mdev or would the most feasible way be calculating that all manually using the individual |
Yes, it could be retrieved. Just haven't put the effort in to do it since it varies across platforms and I wasn't sure if anyone needed it. Would have to create regex strings that work on each platform and then integrate. Happy to do this as time allows or will also accept a PR that does this. If this is something you would like to have, could you do a PR or open a new ticket for it? Thanks! |
It's not something I need immediately since I can just manually calculate the timings, but seems like it'll be something fun to look in to. I'll give it my best shot |
If I call
Ping(google.com, count: 5)
and listen for events, each individualPingResponse
notes <25ms time, however thePingSummary
shows a total of ~4000ms. Where does this time come from? Using this on Android API 33 emulator with version 9.0.1.The text was updated successfully, but these errors were encountered: