#include<stdio.h>
#include<stdlib.h>
#include<time.h>
struct t
{
int year;
int mon;
int mday;
int hour;
int min;
int sec;
int ms;
} t1, t0;
// 计算两个日历的时间差,精确到毫秒
double mydifftime(struct t t1, struct t t0)
{
time_t time1, time0;
struct tm ti1, ti0;
ti1.tm_year = t1.year - 1900;
ti1.tm_mon