Skip to main content
Inspiring
August 22, 2008
Question

DateDiff doesn't support milliseconds

  • August 22, 2008
  • 22 replies
  • 3113 views
I want to simply output the time the page renders (without making debug info available to public), but amazingly, it seems CF8 lost support in DateDiff for milliseconds (which was the letter 'l' for the datepart)

Anyone know of a way to get page execution time?
    This topic has been closed for replies.

    22 replies

    Inspiring
    August 22, 2008
    I used GetTickCount, but it never matches the execution time when I have debug out (it may just be because the extra time to process the debug output makes this different)

    There are limitations of where I can use GetTickCount(), because I have to set it at the start of the request (easy enough, stored in a REQUEST-scope variable) but then I have to calculate the difference before the page ends (so the time isn't right) so the variable for the difference exists when I want to output it (in the footer of the page)
    Inspiring
    August 22, 2008
    gettickcount plus some basic arithmetic.