Description

Returns the current value of an internal millisecond timer.

Returns

A string representation of the system time, in milliseconds.

Category

Date and time functionsSystem functions

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

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy