我想知道哪个函数在 C 语言的 OpenVMS 上提供最佳计时精度/准确度。
我们有一台运行 OpenVMS V8.3-1H1 的 HP Integrity rx2660 服务器。
到目前为止,我的搜索指向 $GETTIM_PREC,它提供 100 纳米的分辨率和毫秒级的精度。 还有比这更好的吗?
问候
最佳答案
来自System Services Reference Manual :
On Integrity servers, $GETTIM_PREC returns the system time after accounting for the time elapsed since the last one millisecond update of the system time.
On Alpha, this service is equivalent to $GETTIM service and just returns the last updated system time. The successful completion status of the service on ALPHA is SS$_LOWPREC.
因此在 Integrity 上它可能优于 1 毫秒的精度,但似乎没有对任何特定精度的 promise 。
EXE$GL_ABSTIM_TICS
仅提供 10 毫秒的精度。我不知道有任何其他更准确的内部值,也没有偶然发现 V8 的 IDSM。
关于c - OpenVMS定时器精度,优于毫秒精度。,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11360616/