阅读背景:

我可以使用什么API来获得系统正常运行时间?

来源:互联网 

I would like to get the system uptime from within a C application running on a linux-based system. I don't want to call uptime(1) and parse the output, I'd like to call the underlying C API I suspect exists. Anyone know if there is such a call, or does uptime(1) simply process records obtained from wtmp?I would like to get the system uptime from with




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: