In Java, you either have System.currentTimeMillis () or System.nanoTime ().
I assume getTickCount () just returns System.currentTimeMillis (). It is also used by ColdFusion to report debug runtime. You can find in numerous StackOverflow questions that complain about System.currentTimeMillis () inaccuracies as they report from the operating system. On Windows, accuracy can vary quite a bit, some say up to 50 ms. This does not mean that there are any leaps in it. However, it is fast. The queries seem to report either something from the JDBC driver, either in the SQL module, or another method, since they are usually accurate.
Alternatively, if you really want to increase accuracy, you can use this:
currentTime = CreateObject("java", "java.lang.System").nanoTime()
It is less than currentTimeMillis (), but it is accurate to nanoseconds. You can divide by 1000 to get to microseconds. You will want to wrap the precisionEvaluate () function if you are trying to convert to milliseconds by dividing by 1,000,000.
Note that nanoTime () does not exactly match the nanosecond, exactly accurate for the nanosecond. Accuracy is just an improvement over currentTimeMillis ().
Jt
source share