Lisp HUG Maillist Archive

Sub-millisecond precision in LW

Does LW have built-in support for sub-millisecond time querying functions?

On Win32 I can expose QueryPerformanceCounter and on OS X I could work 
with NSDate to get this, but was wondering if there were any built-in 
functions I haven't been able to find?

Jeff M.

_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html


Re: Sub-millisecond precision in LW

Hi,

In case you wanted that also for LispWorks for Linux, then there are
exported but undocumented functions in lwgtk package which can be used
(they are FLI to glib):

(lwgtk:g-date-time-get-microsecond (lwgtk:g-date-time-new-now-local))

CL get-internal-run-time, get-internal-real-time will work if the time
unit was microsecond, but as per internal-time-units-per-second
constant it is 1000 under LW 6.1.1 32bit (side note: it is 1000000
under Clouzer 1.9 64bit).

HIH

Ala'a

_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html


Updated at: 2020-12-10 08:34 UTC