Hızlı yanıt: kod örneği
Copy-pasted from here:Just add to the arguments list in order for this to work in CPS: Linux from has and
/* localtime example */#include <stdio.h>#include <time.h>int main (){ time_t rawtime; struct tm * timeinfo; time ( &rawtime ); timeinfo = localtime ( &rawtime ); printf ( "Current local time and date: %s", asctime (timeinfo) ); return 0;}
void
main()
gettimeofday()
<sys/time.h>
tv_sec
tv_microsec