JCL Help:TJclMultimediaTimer.Elapsed
From Project JEDI Wiki
Jump to navigationJump to searchJCL Help: TJclMultimediaTimer.Elapsed Method
Search in JCL Help
Search in all projects
Summary
Returns the elapsed time in milliseconds.
Pascal
public function Elapsed(const Update: Boolean): Cardinal;
Parameters
Parameters | Description |
const Update: Boolean | When you call BeginTimer the class remembers the current time. Elapsed returns the time elapsed since that call. When you specify False for the Update parameter, Elapsed always returns the elapsed time relative to the time of calling BeginTimer. However, if you pass True for Update then Elapsed overwrites that time with the current time. Subsequent calls to Elapsed will then be relative to the last Elapsed call. |
Return Value
The elapsed time, in milliseconds, since the last call to BeginTimer or Elapsed. If the timer is inactive (you haven't called BeginTimer or called EndTimer more recently) the return value is always 0.
Description
Elapsed returns the elapsed time, in milliseconds, since the last call to either BeginTimer or Elapsed, depending on the Update parameter.
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