MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / kbpsFromBytes

Function kbpsFromBytes

src/gui/NetworkDiagnosticsDialog.cpp:2154–2160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2152}
2153
2154static double kbpsFromBytes(qint64 bytesDelta, double elapsedSeconds)
2155{
2156 if (bytesDelta <= 0 || elapsedSeconds <= 0.0) {
2157 return 0.0;
2158 }
2159 return (bytesDelta * 8.0) / (1000.0 * elapsedSeconds);
2160}
2161
2162static double audioBufferMs(qsizetype bytes, int sampleRate)
2163{

Callers 1

sampleNowMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected