tracker issue : CF-3198651

select a category, or use search below
(searches all categories and all time range)
Title:

milliseconds do not update as expected

| View in Tracker

Status/Resolution/Reason: Closed/Won't Fix/

Reporter/Name(from Bugbase): Clive Morris / Clive Morris (snowshine)

Created: 05/25/2012

Components: Language

Versions: 9.0.1

Failure Type: Performance Issue

Found In Build/Fixed In Build: 9.0.1 /

Priority/Frequency: Normal / Few users will encounter

Locale/System: English / Win 2008 Server R2

Vote Count: 0

Problem Description:
I wish to have an accurate millisecond timer.  Both the GetTickCount() function and timeformat(now(),"L") display essentially the same data but there are jumps in the output, so the system will display the same GetTickCount() for a number of itterations and then it will jump by about 10-30 milliseconds before showing a new value. As a minute changes the date can sometimes show the previous "second" value even though the millisecond counter has moved to the next second.

Steps to Reproduce: Run the following code:

<cfset d=now()>
<cfoutput>
<cfloop condition="#d# EQ #now()#">
#now()#  ms=#timeformat(now(),"L")#  tick=#GetTickCount()#<br/>
</cfloop>
</cfoutput>

Run this a few times and have a look at the output and you will see that the millisecond output does not progress smoothly as expected but jumps and sometimes the millisecond counters can have changed into the next second but the now() value still shows the previous second.

Actual Result:

Expected Result:

Any Workarounds:

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3198651

Deployment Phase:	Release Candidate

External Customer Info:
External Company:  
External Customer Name: snowshine
External Customer Email:  
External Test Config: My Hardware and Environment details:

Win Server 2008 R2

Attachments:

Comments:

Is it possible to access a more accurate millisecond timer directly from the system clock and use this in a CF page? If so then please can you give me details of how to do this. Thank you.
Comment by External U.
19209 | May 25, 2012 04:18:47 AM GMT
This is how Java Runtime works... We can' t do anything here..
Comment by Awdhesh K.
19210 | December 17, 2013 06:39:22 AM GMT