Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 3 Tools : $REALTIMER

$REALTIMER
Returns the number of micro-seconds since 1 January 1980. (F)
Invocation
microseconds = $REALTIMER
 
A number containing the number of micro-seconds. Its syntax is P (packed decimal) with length 16 and 0 decimals.
Usage Notes
The value returned is based on the clock set for the CPU (which is generally set to GMT/UTC) and represents the time elapsed from 1 January 1980 without modification due to time zones. $REALTIMER should therefore be used only for deltas.
Example
The following rule returns the number of microseconds since 1980 and returns it to the message log:

 
 
REALTIMER_1;
_ LOCAL TIME;
_ ------------------------------------------------------------------------
_ ------------------------------------------------------------+-----------
_ TIME = $REALTIMER; | 1
_ CALL MSGLOG('THE NUMBER OF MICROSECONDS IS: ' || TIME ); | 2
_ ------------------------------------------------------------------------

 
Resulting Output
Pressing PF2 after executing this rule displays the following on the screen:

 
------------------------- INFORMATIONAL MESSAGE LOG -------------------------
COMMAND ===> SCROLL ===> P
THE NUMBER OF MICROSECONDS IS: 422291030198808

 

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved