mirror of
https://github.com/Leonmmcoset/CMLeonOS.git
synced 2026-03-03 15:30:27 +00:00
uptime命令
This commit is contained in:
@@ -23,7 +23,10 @@ namespace CMLeonOS
|
||||
|
||||
// 修复模式变量(硬编码,用于控制是否启用修复模式)
|
||||
public static bool FixMode = false;
|
||||
|
||||
|
||||
// 系统启动时间(用于uptime命令)
|
||||
public static DateTime SystemStartTime;
|
||||
|
||||
protected override void BeforeRun()
|
||||
{
|
||||
// Console.Clear();
|
||||
@@ -38,6 +41,10 @@ namespace CMLeonOS
|
||||
Console.WriteLine("CMLeonOS Project");
|
||||
Console.WriteLine("By LeonOS 2 Developement Team");
|
||||
|
||||
// 记录系统启动时间(用于uptime命令)
|
||||
SystemStartTime = DateTime.Now;
|
||||
Console.WriteLine($"System started at: {SystemStartTime.ToString("yyyy-MM-dd HH:mm:ss")}");
|
||||
|
||||
// 注册VFS
|
||||
try
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user