time_t time()

time_t  atime,  btime;

time(&atime);

btime = time(0);

两种方式效果一样。

原文地址:https://www.cnblogs.com/azbane/p/9522262.html