#include <time.h>
#include <stdio.h>
#include <unistd.h>


int main(int argc, char argv[])
{
    time_t t;
    
    time(&t);
    printf(" second is %ld\n",t);
    
    sleep(1);
    
    t = time(NULL);
    printf(" second is %ld\n",t);

    return 0;
}

 

相关文章:

  • 2022-12-23
  • 2021-12-15
  • 2022-12-23
  • 2022-12-23
  • 2022-01-23
  • 2021-07-30
  • 2021-12-24
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-15
  • 2022-03-08
  • 2021-07-29
  • 2021-12-15
  • 2021-06-18
相关资源
相似解决方案