#include#include using namespace std; void setInterval() { time_t start_time, cur_time; int minutesTil=0; if (testTime.wHour > 14 && testTime.wHour < 23 ) { if (testTime.wHour = 22 && testTime.wMinute > 30) { setReset(); } time(&start_time); do { time(&cur_time); } while((cur_time - start_time) < 3); } void main() { SYSTEMTIME testTime; GetSystemTime(&testTime); setInterval(); SetSystemTime(&testTime); }