11 lines
428 B
C++
11 lines
428 B
C++
--- Telegram/ThirdParty/libtgvoip/VoIPController.cpp.orig 2018-02-07 04:45:28 UTC
|
|
+++ Telegram/ThirdParty/libtgvoip/VoIPController.cpp
|
|
@@ -1954,7 +1954,7 @@ static void initMachTimestart() {
|
|
#endif
|
|
|
|
double VoIPController::GetCurrentTime(){
|
|
-#if defined(__linux__)
|
|
+#if defined(__linux__) || defined(__FreeBSD__)
|
|
struct timespec ts;
|
|
clock_gettime(CLOCK_MONOTONIC, &ts);
|
|
return ts.tv_sec+(double)ts.tv_nsec/1000000000.0;
|