mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-18 03:56:42 +00:00
Extract shared code from timer
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
c4cb0f1aef
commit
839c2a6689
@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
use ostd::arch::timer::Jiffies;
|
||||
use ostd::timer::Jiffies;
|
||||
|
||||
pub(super) fn get_network_timestamp() -> smoltcp::time::Instant {
|
||||
let millis = Jiffies::elapsed().as_duration().as_millis();
|
||||
|
Reference in New Issue
Block a user