HSMADM_GetTimeOfDay

Synopsis

#include hsmadmin.h 
HSMADM_RV HSMADM_GetTimeOfDay(unsigned int hsmIndex,HSMADM_TimeVal_t * tv ); 

Description

Obtains the current time of day from the HSM RTC.

Parameters

hsmIndex 

Zero-based index of the HSM number to be used

tv

Address of the variable which is to be initialized with the current time of day. It indicates the time passed since midnight, 1 Jan 1970. This struct contains a field tv_usec, which is the number of microseconds. The HSM real-time clock only has millisecond resolution; therefore, tv_usec is always rounded up to the nearest millisecond HSMADM_TimeVal_t is defined in hsmadmin.h.