osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


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 :.