JCL Help:TJclMultimediaTimer.BeginTimer

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Starts the timer.


Pascal

 public procedure BeginTimer(const Delay: Cardinal; const Resolution: Cardinal);


Parameters

Parameters Description
const Delay: Cardinal Event delay in milliseconds. This is the interval after which the timer 'fires'.
const Resolution: Cardinal Timer event resolution, in milliseconds. This influences the accuracy with which periodic events occur. A value of 0 specified the greatest possible accuracy while larger values decrease in accuracy. In effect this means that you are saying you want to be notified after an interval of Delay +/- Resolution. The specified value must be supported by the timer hardware or the function fails. You can use the MaxPeriod and MinPeriod properties to retrieve the range of supported resolutions.


Description

BeginTimer starts the timer with the specified delay (interval) and resolution. Regardless of the kind of timer (one-shot versus periodic) you must always call EndTimer to stop the timer.


About

Donator

Marcel van Brakel


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page