MCPcopy Create free account
hub / github.com/abbeycode/UnrarKit / GetUnixNS

Method GetUnixNS

Libraries/unrar/timefn.cpp:184–189  ·  view source on GitHub ↗

Get the high precision Unix time in nanoseconds since 01-01-1970.

Source from the content-addressed store, hash-verified

182
183// Get the high precision Unix time in nanoseconds since 01-01-1970.
184uint64 RarTime::GetUnixNS()
185{
186 // 11644473600000000000 - number of ns between 01-01-1601 and 01-01-1970.
187 uint64 ushift=INT32TO64(0xA1997B0B,0x4C6A0000);
188 return itime*(1000000000/TICKS_PER_SECOND)-ushift;
189}
190
191
192// Set the high precision Unix time in nanoseconds since 01-01-1970.

Callers 2

UnixSymlinkFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected