fork download
  1. #include <iostream>
  2. #include <cstdint>
  3. using namespace std;
  4.  
  5. int main() {
  6. uint64_t t1 = 1510763846;//_time64(NULL);
  7. uint64_t t2 = 1510763847;//_time64(NULL);
  8. double d1 = (double)t1;
  9. double d2 = (double)t2;
  10. std::cout << std::fixed <<
  11. "uint64_t: " << t1 << ", " << t2 << std::endl <<
  12. "double: " << d1 << ", " << d2 << std::endl;
  13. return 0;
  14. }
Success #stdin #stdout 0s 16064KB
stdin
Standard input is empty
stdout
uint64_t: 1510763846, 1510763847
double: 1510763846.000000, 1510763847.000000