|
楼主 |
发表于 2015-9-30 13:06:54
|
显示全部楼层
看了代码
void delay_update(void)
{
struct session *ses;
struct listnode *node;
struct listroot *root;
char buf[BUFFER_SIZE];
open_timer(TIMER_UPDATE_DELAYS);
for (ses = gts ; ses ; ses = gtd->update)
{
gtd->update = ses->next;
root = ses->list[LIST_DELAY];
for (root->update = 0 ; root->update < root->used ; root->update++)
{
node = root->list[root->update];
if (node->data == 0)
{
node->data = gtd->time + (long long) (get_number(ses, node->pr) * 1000000LL);
}
if (node->data <= gtd->time)
{
strcpy(buf, node->right);
show_debug(ses, LIST_DELAY, "#DEBUG DELAY {%s}", buf);
delete_node_list(ses, LIST_DELAY, node);
script_driver(ses, LIST_DELAY, buf);
}
}
}
close_timer(TIMER_UPDATE_DELAYS);
}
所以 只支持秒级,,, 不过可以自己修改 成支持microsecond |
|