Get the high precision Unix time in nanoseconds since 01-01-1970.
| 182 | |
| 183 | // Get the high precision Unix time in nanoseconds since 01-01-1970. |
| 184 | uint64 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. |
no outgoing calls
no test coverage detected