Omnis Externals
Performance Documentation
A performance measuring utility external for
use with Omnis Studio
Outline of Performance v0.1
The "Performance" external library provides users with
a means to start, stop and read the high performance clock on Windows,
returning a time measure in microseconds. It may be used to measure
the speed of code and database processes within Omnis. The xcomp
has a very small overhead of approximately 120 microseconds that
may be measured (demonstrated in demo library).
Static Methods
The library presents a set of static external methods:
- bool $canrunperformance(): Indicates whether
machine has a high performance counter
- void $starttimer(): Starts the timer.
No return value.
- int $stoptimer(): Stops the timer. Returns
time, since timer was started with the $starttimer function, in
microseconds.
- character[] $versionInfo(): returns a
character array containing the control string: " performance
version: MAJOR_VERSION_NUMBER . MINOR_VERSION_NUMBER ".
|