logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

msr_host_latency - Calculate latency between last sample in a Mini-SEED record and the host computer

Author

       Chad Trabant
       IRIS Data Management Center

Libmseed API                                       2006/02/27                                MSR_HOST_LATENCY(3)

Description

msr_host_latency calculates the latency in seconds of  the  Mini-SEED  data  as  the  difference  between
       current time in UTC of the host computer and the time of the last sample in the record.

       This routine is only really useful when dealing with a telemetered data stream or something similar.

       Double  precision  is  returned,  but  the true precision is dependent on the accuracy of the host system
       clock among other things.

Name

       msr_host_latency  -  Calculate  latency  between  last sample in a Mini-SEED record and the host computer
       time.

Return Values

msr_host_latency returns seconds of latency or 0.0 on error (indistinguishable from 0.0 latency).

See Also

ms_intro(3) and msr_unpack(3).

Synopsis

#include<libmseed.h>doublemsr_host_latency(MSRecord*msr);

See Also