Skip to main content
Skip table of contents

(v13) Timer library API discovery

This page applies to Harlequin v13.1r0 and later; and to Harlequin MultiRIP but not Harlequin Core


The timer library API (timerapi.h) is made available via the RDR system. For more information see (v13) RDR and Event APIs . A global pointer must be initialized with the result of looking up the timer library API RDR. The following shows how to set up the timer library API:

TEXT
                      #include "apis.h" #include "timerapi.h"
                      sw_timer_api_20110324* timer_api;
                      ...
                      {
                      void* vpapi;
                        ...
                      (void)SwFindRDR(RDR_CLASS_API, RDR_API_TIMER, 20110324, &vpapi, NULL);
                        timer_api = vpapi;
                        ...
                      }

NOTE:  In example code listings, error handling is omitted for clarity.

Once the timer library API RDR is successfully found the API functions can be used.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.