Lines Matching refs:delta_down
54 let delta_down = self.nanosecond() % span; in round_subsecs() localVariable
55 if delta_down > 0 { in round_subsecs()
56 let delta_up = span - delta_down; in round_subsecs()
57 if delta_up <= delta_down { in round_subsecs()
60 self - Duration::nanoseconds(delta_down.into()) in round_subsecs()
69 let delta_down = self.nanosecond() % span; in trunc_subsecs() localVariable
70 if delta_down > 0 { in trunc_subsecs()
71 self - Duration::nanoseconds(delta_down.into()) in trunc_subsecs()
161 let delta_down = stamp % span; in duration_round() localVariable
162 if delta_down == 0 { in duration_round()
165 let (delta_up, delta_down) = if delta_down < 0 { in duration_round()
166 (delta_down.abs(), span - delta_down.abs()) in duration_round()
168 (span - delta_down, delta_down) in duration_round()
170 if delta_up <= delta_down { in duration_round()
173 Ok(self - Duration::nanoseconds(delta_down)) in duration_round()
190 let delta_down = stamp % span; in duration_trunc() localVariable
191 match delta_down.cmp(&0) { in duration_trunc()
193 Ordering::Greater => Ok(self - Duration::nanoseconds(delta_down)), in duration_trunc()
194 Ordering::Less => Ok(self - Duration::nanoseconds(span - delta_down.abs())), in duration_trunc()