[Overview][Constants][Types][Classes][Index] Reference for unit 'ptc' (#ptc)

TPTCTimerFactory.CreateNew

Creates a timer object.

Declaration

Source position: line 0

class function TPTCTimerFactory.CreateNew: IPTCTimer;

class function TPTCTimerFactory.CreateNew(

  ATime: Double

):IPTCTimer;

Arguments

ATime

  

The initial time value in seconds.

Description

Creates a timer object.

When called without arguments, the timer is created in a stopped state and the time value is initially set to zero. When ATime is specified, the timer value is initially set to ATime, and the timer is initially stopped. When ATimer is specified, the newly created timer object is copied from ATimer.