Skip to main content

Module skew

Module skew 

Source
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Β§

SkewEstimate
An estimate of how skewed our clock is, plus a summary of why we think so.
SkewObservation πŸ”’
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 into f64s.
mean_and_standard_deviation πŸ”’
Compute and return the mean and standard deviation of values.