Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OpenVMS timer precision, better than millisecond accuracy.

I'm wondering which function offers best precision/accuracy for timing on OpenVMS in C.

We have an HP Integrity rx2660 server running OpenVMS V8.3-1H1.

My search so far points to $GETTIM_PREC which offers 100-nano resolution but millisecond accuracy. Does it get any better than this?

regards

like image 748
nantonop Avatar asked Nov 14 '22 02:11

nantonop


1 Answers

From the 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.

So on Integrity it may be better than 1ms accuracy, but there doesn't seem to be a commitment to any particular accuracy.

EXE$GL_ABSTIM_TICS only provided accuracy to 10ms. I don't know of any other internal values that are more accurate and haven't stumbled across an IDSM for V8.

like image 136
HABO Avatar answered Dec 05 '22 11:12

HABO