Linux
| 471 | |
| 472 | #ifdef LINUX_BUILD // Linux |
| 473 | uint64_t GetTimeMs64() |
| 474 | { |
| 475 | struct timeval tv; |
| 476 | gettimeofday(&tv, NULL); |
| 477 | uint64_t ret = tv.tv_usec; |
| 478 | |
| 479 | // Convert from micro seconds (10^-6) to milliseconds (10^-3) |
| 480 | ret /= 1000; |
| 481 | // Adds the seconds (10^0) after converting them to milliseconds (10^-3) |
| 482 | ret += (tv.tv_sec * 1000); |
| 483 | return ret; |
| 484 | } |
| 485 | |
| 486 | |
| 487 | #else // Windows |
no outgoing calls
no test coverage detected