Open topic with navigation

TIBCO Rendezvous® 8.7.0

# TibrvTimer::create()

Method

## Declaration

    TibrvStatus create (
        TibrvQueue* queue,
        TibrvCallback* callback,
        tibrv_f64 interval,
        const void* closure = NULL);

## Purpose

Start a timer.

Parameter | Description
`queue` | At each time interval, place the event on this event queue.
`callback` | On dispatch, process the event with this callback object. This object can be an instance of class TibrvTimerCallback, or its superclass TibrvCallback.
`interval` | The timer triggers its callback method at this repeating interval (in seconds).
`closure` | Store this closure data in the event object.

## Remarks

This method creates a C timer, activates it, and stores its handle in the C++ object.

## Timer Granularity

Express the timer interval (in seconds) as a 64-bit floating point number. This representation allows microsecond granularity for intervals for over 100 years. The actual granularity of intervals depends on hardware and operating system constraints.

## Zero as Interval

Many programmers traditionally implement user events as timers with interval zero. Instead, we recommend implementing user events as messages on the intra-process transport. For more information, see Intra-Process Transport and User Events in TIBCO Rendezvous Concepts.

## See Also

Timer Event Semantics in TIBCO Rendezvous Concepts

TibrvEvent::destroy()

TibrvTimerCallback

TibrvTimerCallback::onTimer()

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO Rendezvous®

Copyright © 1997-2023. Cloud Software Group, Inc. All Rights Reserved.