INTRODUCTION

The same "compiler magic" techniques used to achieve method-tracing in CodeSiteEx are used to provide a simple high-resolution timer.  It can time code with a very high accuracy and send the results to CodeSite in microseconds, CPU clock cycles, or a special clock format.

Using the timer is very simple and can be done with only one line of code:

       procedure MyProc;
       begin;
         CodeSiteEx.Timer;
 
         { Code to be timed goes here...
           At the end of the procedure, the timing will be
           sent to CodeSiteEx in microseconds. }
       end;