#include
#include
using namespace std;
int main() {
timeval p;
gettimeofday(&p, NULL);
printf("currentTime:%d
", (int)p.tv_sec);
p.tv_sec = p.tv_sec + 60 * 5; //系统时间增加五分钟
settimeofday(&p, NULL);
gettimeofday(&p, NULL);
printf("currentTime:%d
", (int)p.tv_sec);
return 0;
}