为什么hwclock 会有10sec的延时呢
我先用popen “ntpdate..." 得到一个offset值,然后我用settimeofday(&tv, NULL)更新当前时间
设置完 我马上再用本地时间再更改时间再调用settimeofday 就没反应了 10秒才有反应
if (-1 == settimeofday(&tvset, NULL))
{
perror("settimeofday error");
return -1;
}
return system("hwclock -w");
怎么才能反应快点 或者其他思路 谢谢!!急。。。