Home
last modified time | relevance | path

Searched refs:TimeDisplay (Results 1 – 4 of 4) sorted by relevance

/tools/netsim/rust/common/src/util/
Dtime_display.rs23 pub struct TimeDisplay { struct
30 impl TimeDisplay { argument
37 pub fn new(secs: i64, nsecs: u32) -> TimeDisplay { in new() argument
38 TimeDisplay { secs, nsecs } in new()
99 fn get_current_time() -> TimeDisplay { in get_current_time()
101 TimeDisplay::new(since_epoch.as_secs() as i64, since_epoch.subsec_nanos()) in get_current_time()
117 use super::TimeDisplay;
121 let epoch_time = TimeDisplay::new(0, 0); in test_utc_display_ok()
124 let twok_time = TimeDisplay::new(946684900, 0); in test_utc_display_ok()
131 let max_seconds = TimeDisplay::new(i64::MAX, 0); in test_utc_display_err()
[all …]
/tools/netsim/rust/daemon/src/captures/
Dcaptures_handler.rs33 use netsim_common::util::time_display::TimeDisplay;
98 let time_display = TimeDisplay::new(capture.seconds, capture.nanos as u32); in handle_capture_get()
/tools/netsim/rust/cli/src/
Dresponse.rs19 use netsim_common::util::time_display::TimeDisplay;
286 TimeDisplay::new( in print_list_capture_response()
Dargs.rs19 use netsim_common::util::time_display::TimeDisplay;
258 let time_display = TimeDisplay::new( in get_requests()