time

[DllImport("msvcrt.dll", CallingConvention = CallingConvention.Cdecl, SetLastError = true)]
public static extern int time(
   IntPtr timer
);

Microsoft documentation: Link

Last updated