rustftechh 0.1.1

A blazingly fast, highly extensible, and feature-rich system information tool written in Rust with fastfetch parity and multi-distro logos
1
2
3
4
5
6
7
8
9
use super::ffi;
use crate::info::uptime::format_uptime;

pub fn detect_uptime() -> Option<String> {
    unsafe {
        let ms = ffi::GetTickCount64();
        Some(format_uptime(ms / 1000))
    }
}