Is it possible in C/C++ in Linux to get informed when a specified date/time is reached?
问题 Is it possible using standard C++ in Linux to get informed when a specified date/time is reached by the system time (assuming my process is up of course)? I could just set a timer to the time I need to wait, but what happens if the user changes the system time? Can I get informed by the system that the user changed the system time to reset my timers? 回答1: The Linux kernel has such system calls, although, they are not integrated into the libc API. You can create a timer, get a file descriptor