mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
FS-7508: timing update
This commit is contained in:
committed by
Michael Jerris
parent
8d4686aee2
commit
fc1ff9209e
@@ -380,7 +380,7 @@ SWITCH_DECLARE(void) switch_time_set_cond_yield(switch_bool_t enable)
|
||||
|
||||
static switch_status_t timer_generic_sync(switch_timer_t *timer)
|
||||
{
|
||||
switch_time_t now = switch_micro_time_now();
|
||||
switch_time_t now = switch_time_now();
|
||||
int64_t elapsed = (now - timer->start);
|
||||
|
||||
timer->tick = (elapsed / timer->interval) / 1000;
|
||||
|
Reference in New Issue
Block a user