1 Star 1 Fork 2

abc.chen/XSharedLibrary

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
pd.cpp 389 Bytes
一键复制 编辑 原始数据 按行查看 历史
abc.chen 提交于 2020-02-24 11:11 +08:00 . 20200221
#include "pd.h"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#ifndef _WIN32
#include <unistd.h>
#include <sys/time.h>
#include <time.h>
void Sleep(int ms)
{
usleep(ms*1000);
}
unsigned int GetTickCount()
{
struct timeval tv;
struct timezone tz;
memset(&tv, 0 ,sizeof(tv));
gettimeofday(&tv, &tz);
return (tv.tv_sec * 1000 + tv.tv_usec / 1000);
}
#endif // _WIN32
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/iscar/XSharedLibrary.git
git@gitee.com:iscar/XSharedLibrary.git
iscar
XSharedLibrary
XSharedLibrary
master

搜索帮助