C4droid中有小于1s的延时函数么
c4droid吧
全部回复
仅看楼主
level 10
急急急传冠哥
楼主
RT
如果没有能帮我写一个么顺便带上注释
2016年02月18日 07点02分
1
level 13
李登淳
有。Covariant Clock,纳秒级计时
2016年02月18日 07点02分
2
急急急传冠哥
怎么用我是一个入门的新手
2016年02月18日 07点02分
李登淳
@急急急传冠哥
不怎么用,求我给你整理出来
2016年02月18日 08点02分
急急急传冠哥
@李登淳
求
2016年02月18日 08点02分
李登淳
@急急急传冠哥
好吧
稍等
2016年02月18日 08点02分
level 13
TTHHR
unsleep?不记得了
2016年02月18日 08点02分
3
急急急传冠哥
不晓得我才刚入门
2016年02月18日 08点02分
level 13
李登淳
https://tieba.baidu.com/p/4360535055?share=9105&fr=share
2016年02月18日 09点02分
4
level 11
丿小夕ve
#include<stdio.h>
#include"conio.h"
void sleep(double t){
usleep(t*1000000);
}
int main() {
while (1){
sleep(0.5);
printf("然而0.5秒过去了\n");
}
return 0;
}
2016年02月18日 16点02分
6
溯夜天邪
2016年02月20日 08点02分
level 9
hhkern
usleep微秒
2016年02月19日 12点02分
7
急急急传冠哥
谢谢
2016年02月20日 03点02分
1