c - OpenVMS定时器精度,优于毫秒精度。

标签 c performance openvms benchmarking

我想知道哪个函数在 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/

相关文章:

algorithm - 中止 bool RPN 表达式的评估

python - 为什么通过 ORM 加载 SQLAlchemy 对象比通过原始 MySQLdb 游标加载行慢 5-8 倍?

php - 查询MySQL最新评论+评论总数的最有效方式

Java 日志记录/openVMS

c - 帮我创建这个随机数

c - Oracle Pro*C : Handling end of fetch cursor

c++ - FFMPEG: ‘PIX_FMT_BGR24’ 未在此范围内声明

c - 对于 C 来说真的很陌生,在这个基本代码上遇到了麻烦

c - 无法使用 ProC 链接 OpenVMS 中的 SSL 库

pascal - OpenVMS Pascal 常量用作大小初始值设定项时不是常量