use %lld with (long long) conversion when printing time.