private static void Clock(object sender, Alarm.TimeArgs eventArgs) { Console.WriteLine("您设定闹钟已到点"); }
private static void ShowTime(object sender, Alarm.TimeArgs eventArgs) { Console.WriteLine("过了一秒了,现在的时间是" + $"{eventArgs.Hours}点{eventArgs.Minutes}分{eventArgs.Seconds}秒"); }