查看linux系统的开机时间/重启历史记录1.who -b命令[root@rusky opt]# who -b ---查看最后一次(上次)系统启动的时间 system boot Dec 27 05:06 2.who -r命令[root@rusky opt]# who -r ---查看最后一次(上次)系统启动的时间,及运行级别 run-level 5 Dec 27 05:06 3.last reboot命令 [root@rusky opt]# last reboot reboot system b
webapi接口统一返回请求时间: public class BaseController : ControllerBase { protected ReturnResult<T> Result<T>(Func<ReturnResult<T>> fun) { ReturnResult<T> result = null; var stopWatch = new Stopwatch(); stopWatch.Start(); try { result