PR_Now 编辑
Returns the current time.
Syntax
#include <prtime.h> /wiki/en-US/docs/Mozilla/Projects/NSPR/Reference/PRTime PR_Now(void);
Parameters
None.
Returns
The current time as a /wiki/en-US/docs/Mozilla/Projects/NSPR/Reference/PRTime
value.
Description
PR_Now()
returns the current time as number of microseconds since the NSPR epoch, which is midnight (00:00:00) 1 January 1970 UTC.
You cannot assume that the values returned by PR_Now()
are monotonically increasing because the system clock of the computer may be reset. To obtain monotonically increasing time stamps suitable for measuring elapsed time, use /wiki/en-US/docs/Mozilla/Projects/NSPR/Reference/PR_IntervalNow()
.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论