JCL Help:StartCount

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Starts a high performance resolution counter.


Pascal

 procedure StartCount(var Counter: TJclCounter; const Compensate: Boolean = False);


Parameters

Parameters Description
var Counter: TJclCounter Counter object instantiated by this function.
const Compensate: Boolean = False If compensate is True the class internally determines the overhead associated with calling the user calling the Start and Stop methods and corrects the resulting time; thereby providing a more accurate timing. By default, for backwards compatibility, no compensation takes place.


Description

StartCount starts a high performance resolution counter. It returns a reference to a newly created TJclCounter object. You'll need to hang on to this object to later stop the counter and retrieve the elapsed time. StartCount is the equivalent of instantiating a TJclCouter and immediately calling it's Start method.


See Also

StopCount


About

Unit

JclCounter


Donator

Theo Bebekis


Notes

If the hardware does not support high performance resolution counters an exception is raised.


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