<cstdio> and similar C ++ variants for the standard C library. <sys/time.h> is not included in the standard C library at all (it is part of the POSIX interface for certan OS), therefore there is no such thing as C ++ - specific sys/ctime , so no, you just need to use the same header-file as in C.
The main reason for having the C style and C ++ style header is the application of extern "C" to the functions declared in the header file. On some systems, you may need to wrap a function as follows:
extern "C" { #include <sys/time.h> }
but on my Linux system this is done in the standard <sys/time.h> file.
source share