time_t atime, btime; time(&atime); btime = time(0); 两种方式效果一样。 转载于:https://www.cnblogs.com/azbane/p/9522262.html