event_last_timestamp_c
count.u4.v = event_last_timestamp_c(event.i4.v [,seconds.u4.r]
[,nanoseconds.u4.r]
[,options.u4.v])
This routine returns the timestamp of the last occurrence count
of a clock event.
event clock event number as follows:
0 - 255 event 0 - 255 of the clock specified
by Default Clock in the Utilities Window or the most
recent call to clock_set_multicast_type.
0 - 255 + TCLK_BASE TCLK event 0 - 255
0 - 255 + MIBS_BASE MIBS event 0 - 255
0 - 255 + RRBS_BASE RRBS event 0 - 255
0 - 255 + TVBS_BASE TVBS event 0 - 255
0 - 255 + TESTCLK_BASE TEST clock event 0 - 255
0 - 255 + PROJCLK_BASE PROJ clock event 0 - 255
0 - 255 + NMLCLK_BASE NML clock event 0 - 255
(constants are in 'tclk_events')
[seconds] timestamp in seconds since the epoch when the
requested event last occurred
[nanoseconds] fractional second in nanoseconds when the
requested event last occurred
[options] retrieval options
(CLOCK_OPT_NONE -> no options selected (default),
CLOCK_OPT_REMOTE_DATA -> use remote clock information)
This function returns status values as follows:
OK success
CLIB_NO_SUCH event has never occurred
otherwise ACNET error
This function requires the following include files:
clib_h, tclk_events_h
Related functions:
evmon, evmon_usec_c, ticks_since_event, lckclk_c, lckclk_api,
lckclk_allocate, lckclk_free, acctim, event_history,
reflected_events_c, clock_set_multicast_type, event_translate_c,
event_count_c, event_last_timestamp_c,
clock_get_default_multicast_type, clock_type_convert_c,
is_beam_sync_clock_type_c
C/C++ usage:
int status;
int event = EVENT_MI_RESET_FIXED_TARG;
unsigned int seconds;
unsigned int nanoseconds;
unsigned int options;
status = event_last_timestamp_c(event,&seconds,&nanoseconds,options);