#include < sys/time.h > #include < time.h > #include < stdio.h > int main() { struct timeval tv; if (gettimeofday(&tv, NULL) < 0){ perror("gettimeofday"); return 1; } printf("%s", ctime(&tv.tv_sec)); return 0; }


ソフトウェアエンジニアの技術ブログ:Software engineer tech blog
随机应变 ABCD: Always Be Coding and … : хороший