We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0e5fc4 commit f5d17d5Copy full SHA for f5d17d5
kernel/src/time/ticker.rs
@@ -4,7 +4,6 @@
4
// with a static TICKER instance used with interrupts to
5
// track the passage of time.
6
7
-use crate::print;
8
use spin::Mutex;
9
use x86_64::instructions::port::Port;
10
@@ -18,9 +17,6 @@ static TICKER: Mutex<Ticker> = Mutex::new(Ticker::new());
18
17
pub fn tick() {
19
let mut ticker = TICKER.lock();
20
ticker.counter += 1;
21
- if ticker.counter % TICKS_PER_SECOND == 0 {
22
- print!("\rUptime: {} seconds.", ticker.counter / TICKS_PER_SECOND);
23
- }
24
}
25
26
/// ticks returns the number of ticks of the
0 commit comments