Created Date: 16 Mar, 2022 14:17
Last Modifed Date: 16 Mar, 2022 14:17

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 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:

                      #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;
                        ...
                      }
TEXT

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.