fork(8) download
  1. #include <iostream>
  2. #include <time.h>
  3. using namespace std;
  4.  
  5. int main() {
  6.  
  7. time_t result = time(NULL);
  8. printf("%s%ju secs since the Epoch\n",
  9. asctime(localtime(&result)),
  10. (uintmax_t)result);
  11. return(0);
  12. // your code goes here
  13. return 0;
  14. }
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
Mon Jun 27 21:05:31 2016
1467061531 secs since the Epoch