×
A new build of Corona SDK is now available to subscribers. Not a subscriber? Subscribe now.
CoronaSDK 2012.821 | Released: 23 May 2012, 2:01am | What's New | Download Now

system.getTimer()

Description:

Returns time in milliseconds since application launch.

Syntax:

1
system.getTimer()

Example:

print( system.getTimer() ) -- displays the time running (in milliseconds)

Parameters:

None.

Returns:

Number -- time in milliseconds.

Remarks:
Supported on operating systems and platforms for build numbers shown:
  • Mac OS X:
    Corona SDK 1.0
  • Windows:
    Corona SDK 2.0
  • iOS:
    Corona SDK 1.0
  • Android:
    Corona SDK 2.0