Precise time-synchronization.#208
Conversation
The time-sync feature added a timestamp field to all _BELAYR responses,
changing the format from:
_BELAYR|{value}
to:
_BELAYR|{timestamp}|{value}
Updated test_stdout_forwarding.py to use regex pattern matching to
handle the variable timestamp value in the response.
π€ Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
Codecov Reportβ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #208 +/- ##
==========================================
+ Coverage 63.41% 65.87% +2.45%
==========================================
Files 40 41 +1
Lines 2288 2444 +156
Branches 505 519 +14
==========================================
+ Hits 1451 1610 +159
+ Misses 743 736 -7
- Partials 94 98 +4
Flags with carried forward coverage won't be shown. Click here to find out more. β View full report in Codecov by Sentry. π New features to boost your workflow:
|
|
Damn Brian, that was quick!!!π I'm off sick today, and might be in the coming days too, but I'll give it a spin as soon as I can! From looking at the PR I have a few questions, comments and wishes. I really like that it outputs the mean, variance etc. for N connections (10000?). But for further analysis and visualisation, it would be cool if it was possible to have a Secondly, is this functionality available also from Python? So, e.g. just like we have I'm looking forward to trying it out!!! |
This is already implemented by passing in
It's currently not, but I can make it a function |
|
Awesome. I'm a little fuzzy on how exactly decorators work, but could there be a way that one could pass And I would then always just expect them to simply run the function once like normal and give latency for that single run - it would then be up to the user to run it many times if they wanted statistics on it. |
|
Just tried it out, and I'm really impressed with it! The only comments I have relate to the documentation. I think it makes sense that So just because you want client side timing, then I don't think it warrants settings Other than that I think it's super. I do think that if it was possible to add an extra decorator, or an argument to I didn't look through the exact implementation details everywhere, just so you know. EDIT: I now also tried the Python example, and this is so so useful. |
|
thanks for the feedback! i'll address some of these issues and i'll try and merge this in this week! |
|
I added a |
Summary:
belay latencythat tests/reports the connection latency.@roaldarbol play around with this PR and let me know what you think!