Whatever message this page gives is out now! Go check it out!

GetTickCount

Last update:
May 18, 2026

Description

Returns the current value of an internal millisecond timer.

Returns

A string representation of the system time, in milliseconds.

Category

Function syntax

GetTickCount()

Usage

This function is useful for timing CFML code segments or other page processing elements. The value of the counter has no meaning. To generate useful timing values, take the difference between the results of two GetTickCount calls.

Example

<cfscript>
    SystemTime = GetTickCount();
    writeOutput("System time in milliseconds is: " & SystemTime)
</cfscript>
Output
System time in milliseconds is: 1541480358756

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page