secpolev_get_timestamp()

Return the timestamp associated with the last event received

Synopsis:

#include <secpol/secpolev.h>
uint64_t secpolev_get_timestamp(void)

Library:

libsecpolev

Description:

The secpolev_get_timestamp() function returns the original timestamp of the current security event. Because buffering and other factors cause security events to be slightly delayed, the timestamp returned by secpolev_get_timestamp() provides a more accurate accounting of when the event occurred than a sampling of the system time after the call to secpolev_wait_event() returns.

Returns:

The timestamp obtained from ClockCycles() when the current event was generated. If there is no current event, UINT64_MAX is returned and errno is set to ENOTSUP.

Page updated: