码迷,mamicode.com
首页 >  
搜索关键字:usleep    ( 76个结果
linux时间方面的设置
例如以下一段代码能够借鉴:static void _sleep_response_timeout(modbus_t *ctx){#ifdef _WIN32 /* usleep doesn't exist on Windows */ Sleep((ctx->response_timeout...
分类:系统相关   时间:2014-09-07 12:19:45    阅读次数:268
php 函数
php usleep() 函数延迟代码执行若干微秒。unpack() 函数从二进制字符串对数据进行解包。uniqid() 函数基于以微秒计的当前时间,生成一个唯一的 ID。time_sleep_until() 函数延迟代码执行直到指定的时间。time_nanosleep() 函数延迟代码执行若干秒和...
分类:Web程序   时间:2014-09-03 14:29:46    阅读次数:387
cocos2d-x 跨平台usleep方法
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32)#define usleep(t) Sleep(t)#else#include #define usleep(t) usleep(t)#endif
分类:其他好文   时间:2014-08-23 11:07:40    阅读次数:389
PHP 各种函数
usleep() 函数延迟代码执行若干微秒。unpack() 函数从二进制字符串对数据进行解包。uniqid() 函数基于以微秒计的当前时间,生成一个唯一的 ID。time_sleep_until() 函数延迟代码执行直到指定的时间。time_nanosleep() 函数延迟代码执行若干秒和纳秒。s...
分类:Web程序   时间:2014-08-15 01:26:36    阅读次数:430
linux应用程序中的延时和定时器
笔记:在linux应用程序中延时有sleep()、msleep()和usleep()函数之类的延时,也有如下形式的延时: struct timeval delay; delay.tv_sec = sleepSecond; delay.tv_usec = 0; select( 0, NULL, NULL, NULL, &delay );但是基本上都是基于进程休眠的,好像...
分类:系统相关   时间:2014-08-11 18:06:32    阅读次数:323
linux时间方面的设置
如下一段代码可以借鉴:static void _sleep_response_timeout(modbus_t *ctx) { #ifdef _WIN32 /* usleep doesn't exist on Windows */ Sleep((ctx->response_timeout.tv_sec * 1000) + (ctx->response_timeo...
分类:系统相关   时间:2014-07-10 20:42:13    阅读次数:303
76条   上一页 1 ... 6 7 8
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!