Why they use this: duration = time.time() - self.start_time + 1

Hongyi Zhao hongyi.zhao at gmail.com
Sat Aug 3 22:33:09 EDT 2019


Hi, 

I read the code here:

https://github.com/shichao-an/homura/blob/master/homura.py


It said in line 244:

  duration = time.time() - self.start_time + 1

I'm very confusing why it used like this instead of the following:

  duration = time.time() - self.start_time 


Any hints?

Regards
-- 
.: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :.



More information about the Python-list mailing list