Measure cable length from hardware transmit and receive timestamps

This commit is contained in:
flamingcow
2026-07-25 22:38:52 -07:00
parent 09411aebdf
commit 1b322bb32b
6 changed files with 454 additions and 18 deletions
+7
View File
@@ -75,6 +75,13 @@ func commas(v uint64) string {
return strings.Join(append([]string{s}, parts...), ",")
}
func commasInt(v int64) string {
if v < 0 {
return "-" + commas(uint64(-v))
}
return commas(uint64(v))
}
func humanBytes(b uint64) string {
const unit = 1000.0
v := float64(b)