Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Compute the round trip delay from a SNTP packet in microseconds. 

Files

sntp-c.h/sntp-c.c

Prototype

 

CPU_INT32U  SNTPc_GetRoundTripDly_us (SNTP_PKT  *ppkt)

 

Arguments

ppkt                         Pointer to the SNTP message packet to compute.

Returned Values

SNTP packet round trip delay.

Required Configuration

Module Configuration.

Notes / Warnings

  1. If the round trip delay is faster than the precision of the system clock, then the round trip delay is approximated to 0.

  2. Only the integer part of the round trip delay is returned.

Example Usage

none.

  • No labels