在 Windows Store 应用程序中从系统启动获取滴答声

Obtaining ticks from system boot in Windows Store app

PointerPoint.Timestamp 属性 包含相对于系统启动时间的时间,以微秒为单位。我正在寻找一种以兼容格式获取 当前时间 的方法。此外,从系统启动开始的时间将是一种比 DateTime.Now.

更有效的时间间隔处理方式

Window API 具有 GetTickCountGetTickCount64 等功能,但它们不适用于 Windows Phone。 Windows 应用商店有类似的东西吗?

改用System.Environment.TickCount