Expand description
Code for creating and manipulating observations about clock skew.
Re-exportsΒ§
use web_time_compat::Duration;πuse web_time_compat::Instant;πuse tor_proto::ClockSkew;π
StructsΒ§
- Skew
Estimate - An estimate of how skewed our clock is, plus a summary of why we think so.
- Skew
Observation π - A single observation related to reported clock skew.
EnumsΒ§
- Confidence π
- Subjective description of how sure we are that our clock is/isnβt skewed.
ConstantsΒ§
- SIGNIFICANCE_
THRESHOLD π - How bad does clock skew need to be before weβll tell the user that itβs a problem?
FunctionsΒ§
- discard_
outliers π - Remove all outliers from
values, and convert the resulting times intof64s. - mean_
and_ πstandard_ deviation - Compute and return the mean and standard deviation of
values.