Change 'double' time to 'long long'