MSR_HOST_LATENCY(3)
π MSR_HOST_LATENCY(3) π
okay bestie, welcome to msr_host_latency β a whole library function from libmseed, section 3 of the manual, and honestly? she's a baddie. let's get into it π¦
β¨ NAME β¨
msr_host_latency β calculates the latency between the last sample in a Mini-SEED record and the host computer's time. yeah. that's the whole vibe. π
πΈ SYNOPSIS πΈ
#include <libmseed.h>
double msr_host_latency ( MSRecord *msr );
like, that's it. one function, one argument, one double coming back at you. iconic behavior fr fr π
π§ DESCRIPTION π§
so what does she actually do? msr_host_latency calculates the latency, in seconds, of the Mini-SEED data. and how? it takes the difference between:
- the current time in UTC</> of the host computer, and
- the time of the last sample</> in the record.
that's the latency. that's it. no cap. β¨
lowkey important: this routine is only really useful when you're dealing with a telemetered data stream or something similar. so if you're not doing that... bestie, this might not be your function. π
also, the return type is double precision, yes, but the true precision depends on the accuracy of the host system clock β among other things. so don't come for her if the numbers are a little off, it's giving "depends on your hardware" energy π
π RETURN VALUES π
msr_host_latency returns:
- seconds of latency when everything slays, or
0.0on error.
and here's the plot twist: that error 0.0 is indistinguishable from an actual 0.0 latency. so like... a real zero and a sad zero look exactly the same. the audacity. π
π₯ SEE ALSO π₯
go read those too, iykyk π«Ά
π AUTHOR π
Chad Trabant IRIS Data Management Center
and that's the whole page, bestie!! this was the Libmseed API, dated 2006/02/27 β vintage but still serving. mwah, go calculate some latency, periodt π β¨π
π¦ where this page comes from
- debian bookworm: libmseed-doc 2.19.8-1 Β· LGPL-3.0-or-later
- debian trixie: libmseed-doc 2.19.8-1 Β· LGPL-3.0-or-later
- fedora 43: libmseed-devel 2.19.5-21.fc43 Β· LGPL-3.0-or-later
- fedora 43: libmseed-devel 2.19.5-21.fc43 Β· LGPL-3.0-or-later
- fedora 44: libmseed-devel 2.19.5-22.fc44 Β· LGPL-3.0-or-later
- fedora 44: libmseed-devel 2.19.5-22.fc44 Β· LGPL-3.0-or-later
- ubuntu jammy: libmseed-doc 2.19.6-3 Β· LGPL-3.0-or-later
- ubuntu noble: libmseed-doc 2.19.8-1ubuntu2 Β· LGPL-3.0-or-later
- ubuntu questing: libmseed-doc 2.19.8-1ubuntu2
- ubuntu resolute: libmseed-doc 2.19.8-1ubuntu3 Β· LGPL-3.0-or-later
- ubuntu stonking: libmseed-doc 2.19.8-1ubuntu3 Β· LGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms