Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aws/clock-bound
/ functions
Functions
1,214 in github.com/aws/clock-bound
⨍
Functions
1,214
◇
Types & classes
277
↓ 919 callers
Function
new
()
clock-bound-ff-tester/src/simulation/ntp/perfect.rs:198
↓ 79 callers
Method
build
Builds a multi-source generator from the added generators Creates a generator that will combine all the added sources. If no generators have been add
clock-bound-ff-tester/src/simulation/ntp/multi_source.rs:59
↓ 72 callers
Method
build
Custom `build` finishing function on the generated `ClockErrorBoundLayoutBuilder`. Take the layout version number as a parameter, it is a u16 to ease
clock-bound/src/shm.rs:168
↓ 69 callers
Method
get
Get inner value in hz
clock-bound/src/daemon/time/tsc.rs:123
↓ 66 callers
Method
push
Pushes a new value into the buffer, overwriting the oldest value if the buffer is full Returns the value that was overwritten, if any
clock-bound/src/daemon/clock_sync_algorithm/ring_buffer.rs:34
↓ 46 callers
Method
tsc_post
(&self)
clock-bound/src/daemon/clock_sync_algorithm/ff/event_buffer.rs:21
↓ 42 callers
Method
start_time
Return the start time from this model.
clock-bound-ff-tester/src/simulation/oscillator.rs:126
↓ 41 callers
Method
clock_frequency
Return the clock frequency from this model.
clock-bound-ff-tester/src/simulation/oscillator.rs:121
↓ 37 callers
Method
as_ref
(&self)
clock-bound/src/daemon/clock_sync_algorithm/ff/event_buffer/local.rs:163
↓ 37 callers
Method
data
phc data getter
clock-bound/src/daemon/event/phc.rs:64
↓ 36 callers
Method
id
Getter for this generator's source identifier
clock-bound-ff-tester/src/simulation/ntp/dispersion_increase_linear.rs:144
↓ 36 callers
Method
tsc_pre
(&self)
clock-bound/src/daemon/clock_sync_algorithm/ff/event_buffer.rs:25
↓ 33 callers
Function
create
Create a new Sender-Receiver pair async ring buffer See [module level documentation](self) for more information. # Panics Panics if size is 0
clock-bound/src/daemon/async_ring_buffer.rs:51
↓ 33 callers
Method
oscillator
Get the [`Oscillator`] model
clock-bound-ff-tester/src/simulation/oscillator.rs:475
↓ 32 callers
Method
as_nanos
Returns the total number of nanoseconds, rounded since the Unix Epoch
clock-bound/src/daemon/time/inner.rs:276
↓ 30 callers
Method
indices
Return the time series indices
clock-bound-ff-tester/src/simulation/ntp/series.rs:56
↓ 30 callers
Method
write
Update the clock error bound data in the memory segment. This function implements the lock-free mechanism that lets the writer update the memory segm
clock-bound/src/shm/writer.rs:276
↓ 29 callers
Method
as_ref
(&self)
clock-bound-ff-tester/src/simulation/oscillator.rs:522
↓ 29 callers
Method
iter
Iterator of index with data
clock-bound-ff-tester/src/time/series.rs:50
↓ 27 callers
Method
len
Returns the number of data points in this series
clock-bound-ff-tester/src/time/series.rs:30
↓ 27 callers
Method
send
(&self, value: T)
clock-bound/src/daemon/async_ring_buffer.rs:83
↓ 25 callers
Method
rtt
(&self)
clock-bound/src/daemon/time/inner.rs:52
↓ 23 callers
Method
feed
(&mut self, local: &Local<T>, period_estimate: Period)
clock-bound/src/daemon/clock_sync_algorithm/ff/event_buffer/estimate.rs:132
↓ 23 callers
Method
get
Get the inner value
clock-bound/src/daemon/time/inner.rs:103
↓ 23 callers
Method
midpoint
(&self, other: Self)
clock-bound/src/daemon/time/inner.rs:131
↓ 22 callers
Method
abs
(&self)
clock-bound/src/daemon/time/inner.rs:351
↓ 22 callers
Method
approximate
Return the approximate data at the given time index
clock-bound-ff-tester/src/simulation/ntp/series.rs:66
↓ 22 callers
Function
new
(constant_skew: FullModel)
clock-bound-ff-tester/src/simulation/phc/variable_delay_source.rs:232
↓ 19 callers
Method
clock_disruption_support_enabled
(&self)
clock-bound/src/shm.rs:109
↓ 19 callers
Method
data
Return the forward delays of the time series
clock-bound-ff-tester/src/simulation/ntp/series.rs:61
↓ 19 callers
Method
tsc_timestamp_start
Return the tsc timestamp start from this model
clock-bound-ff-tester/src/simulation/oscillator.rs:131
↓ 18 callers
Method
add_generator
Adds a generator to the multi-source generator Generators are queried in the order they are added, but events are produced in chronological order bas
clock-bound-ff-tester/src/simulation/ntp/multi_source.rs:50
↓ 17 callers
Method
as_femtos
Returns the total number of femtoseconds since the Unix Epoch
clock-bound/src/daemon/time/inner.rs:266
↓ 17 callers
Method
tsc_post
`tsc_post` getter
clock-bound/src/daemon/event/phc.rs:59
↓ 17 callers
Method
tsc_pre
`tsc_pre` getter
clock-bound/src/daemon/event/phc.rs:54
↓ 16 callers
Method
as_seconds_f64
(self)
clock-bound/src/daemon/time/inner.rs:610
↓ 16 callers
Method
disruption_marker
(&self)
clock-bound/src/shm.rs:102
↓ 16 callers
Method
feed
Feed an event into this algorithm Returns [`Some`] if the event has improved this source's [`ClockParameters`].
clock-bound/src/daemon/clock_sync_algorithm/ff/phc.rs:82
↓ 16 callers
Function
poll_period
()
clock-bound-ff-tester/src/simulation/ntp/series.rs:594
↓ 15 callers
Method
feed
Feed an event into this algorithm Returns [`Some`] if the event has improved this source's [`ClockParameters`].
clock-bound/src/daemon/clock_sync_algorithm/ff/ntp.rs:69
↓ 15 callers
Method
max_drift_ppb
(&self)
clock-bound/src/shm.rs:88
↓ 14 callers
Method
min_rtt_in_quarter
(&self, quarter: Quarter)
clock-bound/src/daemon/clock_sync_algorithm/ring_buffer.rs:109
↓ 14 callers
Method
tsc_midpoint
The TSC midpoint
clock-bound/src/daemon/event.rs:35
↓ 13 callers
Method
get_time
Get the current `Instant` by reading `ClockParameters`
clock-bound/src/daemon/time/clocks.rs:26
↓ 13 callers
Method
ntp
(&self)
clock-bound-ff-tester/src/events/v1.rs:74
↓ 13 callers
Method
offset_series
Return the offset data series from this model
clock-bound-ff-tester/src/simulation/oscillator.rs:136
↓ 13 callers
Method
recv
(&mut self)
clock-bound/src/daemon/receiver_stream.rs:102
↓ 13 callers
Method
write
Update the clock error bound data in the memory segment. This function implements the lock-free mechanism that lets the writer update the memory segm
clock-bound/src/vmclock/shm_writer.rs:255
↓ 12 callers
Method
backward_network
Returns the `backward_network_delay`
clock-bound-ff-tester/src/simulation/ntp/round_trip_delays.rs:95
↓ 12 callers
Method
forward_network
Returns the `forward_network_delay`
clock-bound-ff-tester/src/simulation/ntp/round_trip_delays.rs:90
↓ 12 callers
Method
head
Get the latest value added to the ring buffer
clock-bound/src/daemon/clock_sync_algorithm/ring_buffer.rs:82
↓ 12 callers
Function
test_clock_snapshot
()
clock-bound/src/daemon/clock_state/clock_adjust/state_machine.rs:469
↓ 12 callers
Method
true_time_to_tsc_timestamps
(&self)
clock-bound-ff-tester/src/simulation/oscillator.rs:420
↓ 11 callers
Method
parse
Parse from bytes
clock-bound/src/daemon/io/ntp/packet/short.rs:66
↓ 11 callers
Method
push
(&mut self, event: T, now_tsc_post: TscCount)
clock-bound/src/daemon/clock_sync_algorithm/ff/event_buffer/estimate.rs:97
↓ 10 callers
Method
as_of
(&self)
clock-bound/src/shm.rs:67
↓ 10 callers
Method
clock_status
(&self)
clock-bound/src/shm.rs:95
↓ 10 callers
Method
data
Get the data of the series
clock-bound-ff-tester/src/time/series.rs:45
↓ 10 callers
Method
demote_to_estimate
(self)
clock-bound-ff-tester/src/time/true_instant.rs:64
↓ 10 callers
Method
feed
Feed the clock sync algorithm with a time synchronization event
clock-bound/src/daemon/clock_sync_algorithm.rs:69
↓ 10 callers
Function
linear
probably has a performance hit, but this helps correctness
clock-bound-ff-tester/src/simulation/interpolation.rs:30
↓ 10 callers
Function
new
(constant_skew: FullModel)
clock-bound-ff-tester/src/simulation/ntp/variable_network_delay_source.rs:223
↓ 10 callers
Method
void_after
(&self)
clock-bound/src/shm.rs:74
↓ 9 callers
Method
as_ref
(&self)
clock-bound-ff-tester/src/events/v1/oscillator.rs:104
↓ 9 callers
Method
calculate_clock_error_bound
Calculate the clock error bound of this event at the time of the event This is different from the clock error bound that would be reported to a user
clock-bound/src/daemon/event/phc.rs:146
↓ 9 callers
Method
get
Get the current clock source and its stratum Returns a tuple of (`ClockSource`, `Stratum`) representing the current state.
clock-bound/src/daemon/selected_clock.rs:28
↓ 9 callers
Method
get
Get the inner value
clock-bound/src/daemon/event/ntp.rs:331
↓ 9 callers
Method
into_estimate
(self)
clock-bound-ff-tester/src/time/estimate_instant.rs:45
↓ 9 callers
Method
next_event_ready
( &self, oscillator: &crate::simulation::oscillator::FullModel, )
clock-bound-ff-tester/src/simulation/ntp/multi_source.rs:68
↓ 9 callers
Function
parse
()
clock-bound/src/daemon/io/ntp/packet.rs:352
↓ 9 callers
Function
remove_file_or_directory
Helper function to remove files created during unit tests.
clock-bound/src/client.rs:405
↓ 9 callers
Method
rng
(&self)
clock-bound-ff-tester/src/simulation/oscillator.rs:101
↓ 9 callers
Method
set_to_server
Set the clock source to a remote NTP server
clock-bound/src/daemon/selected_clock.rs:58
↓ 9 callers
Function
test_clock_parameters
()
clock-bound/src/daemon/clock_state/clock_adjust/state_machine.rs:458
↓ 8 callers
Function
clock_gettime_safe
(clock_id: ClockId)
clock-bound/src/shm/common.rs:20
↓ 8 callers
Method
expunge_old_events
Delete events older than the SKM Window Requires a period measurement to convert the TSC values to time durations. # Starvation warning This will cl
clock-bound/src/daemon/clock_sync_algorithm/ff/event_buffer/local.rs:142
↓ 8 callers
Method
get_offset_and_rtt
Get the offset and RTT measurement for this reading between this clock and another clock. The "offset" is from the caller to the `other` clock - e.g.
clock-bound/src/daemon/time/inner.rs:68
↓ 8 callers
Method
get_value
(&self, rng: &mut R)
clock-bound-ff-tester/src/simulation/delay.rs:25
↓ 8 callers
Method
oscillator_offsets
The offset series
clock-bound-ff-tester/src/events/v1/oscillator.rs:72
↓ 8 callers
Method
server
Returns the `server_delay`
clock-bound-ff-tester/src/simulation/ntp/round_trip_delays.rs:100
↓ 8 callers
Method
to_clock_adjusted
( &self, ntp_adjtime: &impl NtpAdjTimeExt, clock_params: &ClockParameters, sna
clock-bound/src/daemon/clock_state/clock_adjust/state_machine.rs:230
↓ 7 callers
Method
assume_true
(self)
clock-bound-ff-tester/src/time/true_instant.rs:48
↓ 7 callers
Method
bound_nsec
(&self)
clock-bound/src/shm.rs:81
↓ 7 callers
Method
compute_bound_at
( &self, real: TimeSpec, mono: TimeSpec, )
clock-bound/src/shm.rs:439
↓ 7 callers
Method
create_scenario
Generate a full scenario from a [`FullModel`] This will take the scenario as it currently exists, and exhaust it after running. The output scenario w
clock-bound-ff-tester/src/simulation/generator.rs:44
↓ 7 callers
Method
data
`data` getter
clock-bound/src/daemon/event/ntp.rs:67
↓ 7 callers
Method
generate
(&mut self, oscillator: &crate::simulation::oscillator::FullModel)
clock-bound-ff-tester/src/simulation/ntp/multi_source.rs:97
↓ 7 callers
Method
iter
iterate from the tail to the head (oldest to newest) Use `rev` on the iterator if you want to search the other way
clock-bound/src/daemon/clock_sync_algorithm/ring_buffer.rs:94
↓ 7 callers
Method
mean
(&self)
clock-bound-ff-tester/src/simulation/oscillator.rs:105
↓ 7 callers
Method
min_rtt
Return the value with the lowest rtt in the `ring_buffer`
clock-bound/src/daemon/clock_sync_algorithm/ring_buffer.rs:101
↓ 7 callers
Method
period
Convert into a [`Period`]
clock-bound/src/daemon/time/tsc.rs:161
↓ 7 callers
Method
step_size
(&self)
clock-bound-ff-tester/src/simulation/oscillator.rs:113
↓ 7 callers
Method
tail
Get the oldest value in the ring buffer
clock-bound/src/daemon/clock_sync_algorithm/ring_buffer.rs:87
↓ 7 callers
Method
time_at
Calculate the uncorrected time of a corresponding TSC value
clock-bound/src/daemon/clock_sync_algorithm/ff/uncorrected_clock.rs:20
↓ 7 callers
Method
to_initial_phase_correct_halted
( &self, ntp_adjtime: &impl NtpAdjTimeExt, )
clock-bound/src/daemon/clock_state/clock_adjust/state_machine.rs:149
↓ 7 callers
Method
write_error
Write over the `clockbound_err` memory. This function is the interface between Rust `ClockBoundError` and its C version. The C caller allocates memor
clock-bound-ffi/src/lib.rs:68
↓ 6 callers
Method
adjust_clock
Performs an adjustment of the clock, to apply the given phase correction and skew values, in a single system call. # Errors `NtpAdjTimeError::Failure
clock-bound/src/daemon/clock_state/clock_adjust/ntp_adjtime.rs:98
↓ 6 callers
Method
as_ref
(&self)
clock-bound/src/daemon/time/timex.rs:480
↓ 6 callers
Method
assert_within_error_bound
(self, expected: TimeDelta)
clock-bound/src/daemon/io/ntp/packet/short.rs:74
↓ 6 callers
Method
feed
Feed the ring buffer with a new event # Errors - the event is older than events already in the buffer
clock-bound/src/daemon/clock_sync_algorithm/ff/event_buffer/local.rs:114
next →
1–100 of 1,214, ranked by callers