void GetSysTimeToMs()
{
struct timeb tb_Time;
struct tm tm_Now;
int hh,mm,ss,ms;
char cha_Time[12+1];
memset(cha_Time,NULL,sizeof(cha_Time));
ftime(&tb_Time);/*get system time*/
/*convert to local*/
memcpy(&tm_Now,localtime(&tb_Time.time),sizeof(struct tm));
/*Get HH、MM、SS、MS*/
hh = tm_Now.tm_hour;
mm = tm_Now.tm_min;
ss = tm_Now.tm_sec;
ms= tb_Time.millitm;
sprintf(cha_Time,"%02d:%02d:%02d.%03d",hh,mm,ss,ms);
}