unistd.c
clock_gettime
//ti->tv_nsec = (counter.QuadPart / (freq / MICROSEC)) % MICROSEC;
//FYD 改成下面的形式, 因为timer中需要的是纳秒级的数字
ti->tv_nsec = (counter.QuadPart / (freq / MICROSEC)) % MICROSEC * 1000;
skynet.timer.c
将下面的输出注释掉,因为有个进位的问题
time diff error: change from
问题如下:
time diff error: change from 3367400 to 3367499
time diff error: change from 3367500 to 3367599
当后两位从99 -> 100 的时候, 秒数及时没有增加