#include <time.h>//time函数,传NULL就等于获取当前时间time(NULL); 转载于:https://www.cnblogs.com/ryanLee1/p/9775794.html