Lines Matching refs:nsec
126 let (mut sec, nsec) = match &self.src[start..end] {
127 "nanos" | "nsec" | "ns" => (0u64, n),
146 let mut nsec = self.current.1.add(nsec)?;
147 if nsec > 1_000_000_000 {
148 sec = sec.add(nsec / 1_000_000_000)?;
149 nsec %= 1_000_000_000;
152 self.current = (sec, nsec);
210 /// * `nsec`, `ns` -- nanoseconds
345 assert_eq!(parse_duration("17nsec"), Ok(Duration::new(0, 17)));
384 assert_eq!(parse_duration("20 min 17 nsec "), Ok(Duration::new(1200, 17)));