mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-17 06:48:33 +00:00
change low res sleep func api names
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11486 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
1973ee74bc
commit
0463541d61
49 files changed
+180
-180
No files matched your search
@@ -303,7 +303,7 @@ static switch_status_t de_say_time(switch_core_session_t *session, char *tosay,
|
||||
}
|
||||
} else {
|
||||
if ((seconds = atoi(tosay)) <= 0) {
|
||||
seconds = (int64_t) switch_timestamp(NULL);
|
||||
seconds = (int64_t) switch_epoch_time_now(NULL);
|
||||
}
|
||||
|
||||
if (seconds >= 60) {
|
||||
@@ -361,7 +361,7 @@ static switch_status_t de_say_time(switch_core_session_t *session, char *tosay,
|
||||
if ((t = atoi(tosay)) > 0) {
|
||||
target = switch_time_make(t, 0);
|
||||
} else {
|
||||
target = switch_timestamp_now();
|
||||
target = switch_micro_time_now();
|
||||
}
|
||||
switch_time_exp_lt(&tm, target);
|
||||
|
||||
|
||||
@@ -294,7 +294,7 @@ static switch_status_t en_say_time(switch_core_session_t *session, char *tosay,
|
||||
}
|
||||
} else {
|
||||
if ((seconds = atol(tosay)) <= 0) {
|
||||
seconds = (int64_t) switch_timestamp(NULL);
|
||||
seconds = (int64_t) switch_epoch_time_now(NULL);
|
||||
}
|
||||
|
||||
if (seconds >= 60) {
|
||||
@@ -352,7 +352,7 @@ static switch_status_t en_say_time(switch_core_session_t *session, char *tosay,
|
||||
if ((t = atol(tosay)) > 0) {
|
||||
target = switch_time_make(t, 0);
|
||||
} else {
|
||||
target = switch_timestamp_now();
|
||||
target = switch_micro_time_now();
|
||||
}
|
||||
|
||||
if (tz) {
|
||||
|
||||
@@ -292,7 +292,7 @@ static switch_status_t es_say_time(switch_core_session_t *session, char *tosay,
|
||||
}
|
||||
} else {
|
||||
if ((seconds = atoi(tosay)) <= 0) {
|
||||
seconds = (int64_t) switch_timestamp(NULL);
|
||||
seconds = (int64_t) switch_epoch_time_now(NULL);
|
||||
}
|
||||
|
||||
if (seconds >= 60) {
|
||||
@@ -350,7 +350,7 @@ static switch_status_t es_say_time(switch_core_session_t *session, char *tosay,
|
||||
if ((t = atoi(tosay)) > 0) {
|
||||
target = switch_time_make(t, 0);
|
||||
} else {
|
||||
target = switch_timestamp_now();
|
||||
target = switch_micro_time_now();
|
||||
}
|
||||
switch_time_exp_lt(&tm, target);
|
||||
|
||||
|
||||
@@ -292,7 +292,7 @@ static switch_status_t fr_say_time(switch_core_session_t *session, char *tosay,
|
||||
}
|
||||
} else {
|
||||
if ((seconds = atoi(tosay)) <= 0) {
|
||||
seconds = (int64_t) switch_timestamp(NULL);
|
||||
seconds = (int64_t) switch_epoch_time_now(NULL);
|
||||
}
|
||||
|
||||
if (seconds >= 60) {
|
||||
@@ -350,7 +350,7 @@ static switch_status_t fr_say_time(switch_core_session_t *session, char *tosay,
|
||||
if ((t = atoi(tosay)) > 0) {
|
||||
target = switch_time_make(t, 0);
|
||||
} else {
|
||||
target = switch_timestamp_now();
|
||||
target = switch_micro_time_now();
|
||||
}
|
||||
switch_time_exp_lt(&tm, target);
|
||||
|
||||
|
||||
@@ -292,7 +292,7 @@ static switch_status_t it_say_time(switch_core_session_t *session, char *tosay,
|
||||
}
|
||||
} else {
|
||||
if ((seconds = atoi(tosay)) <= 0) {
|
||||
seconds = (int64_t) switch_timestamp(NULL);
|
||||
seconds = (int64_t) switch_epoch_time_now(NULL);
|
||||
}
|
||||
|
||||
if (seconds >= 60) {
|
||||
@@ -350,7 +350,7 @@ static switch_status_t it_say_time(switch_core_session_t *session, char *tosay,
|
||||
if ((t = atoi(tosay)) > 0) {
|
||||
target = switch_time_make(t, 0);
|
||||
} else {
|
||||
target = switch_timestamp_now();
|
||||
target = switch_micro_time_now();
|
||||
}
|
||||
switch_time_exp_lt(&tm, target);
|
||||
|
||||
|
||||
@@ -292,7 +292,7 @@ static switch_status_t nl_say_time(switch_core_session_t *session, char *tosay,
|
||||
}
|
||||
} else {
|
||||
if ((seconds = atoi(tosay)) <= 0) {
|
||||
seconds = (int64_t) switch_timestamp(NULL);
|
||||
seconds = (int64_t) switch_epoch_time_now(NULL);
|
||||
}
|
||||
|
||||
if (seconds >= 60) {
|
||||
@@ -350,7 +350,7 @@ static switch_status_t nl_say_time(switch_core_session_t *session, char *tosay,
|
||||
if ((t = atoi(tosay)) > 0) {
|
||||
target = switch_time_make(t, 0);
|
||||
} else {
|
||||
target = switch_timestamp_now();
|
||||
target = switch_micro_time_now();
|
||||
}
|
||||
switch_time_exp_lt(&tm, target);
|
||||
|
||||
|
||||
@@ -367,7 +367,7 @@ static switch_status_t zh_say_time(switch_core_session_t *session,
|
||||
}
|
||||
} else {
|
||||
if ((seconds = atoi(tosay)) <= 0) {
|
||||
seconds = (int64_t) switch_timestamp(NULL);
|
||||
seconds = (int64_t) switch_epoch_time_now(NULL);
|
||||
}
|
||||
|
||||
if (seconds >= 60) {
|
||||
@@ -425,7 +425,7 @@ static switch_status_t zh_say_time(switch_core_session_t *session,
|
||||
if ((t = atoi(tosay)) > 0)
|
||||
target = switch_time_make(t, 0);
|
||||
else
|
||||
target = switch_timestamp_now();
|
||||
target = switch_micro_time_now();
|
||||
switch_time_exp_lt(&tm, target);
|
||||
|
||||
switch (type) {
|
||||
@@ -455,7 +455,7 @@ static switch_status_t zh_say_time(switch_core_session_t *session,
|
||||
#if 0
|
||||
tm = *localtime(&then);
|
||||
|
||||
this_morning = switch_timestamp_now();
|
||||
this_morning = switch_micro_time_now();
|
||||
switch_time_exp_lt(&tm2, this_morning);
|
||||
tm2->tm_hour = 0;
|
||||
tm2->tm_min = 0;
|
||||
|
||||
Reference in new issue
Block a user