This function is declared in the coresrv/time/time_api.h file.
coresrv/time/time_api.h
Retcode KnGetSystemTime(RtlTimeSpec *time);
This function lets you get the system time.
Output parameter time contains the POSIX system time in RtlTimeSpec format.
time
RtlTimeSpec