Cython: progress bar: set default refresh rate to 5 seconds
This commit is contained in:
@ -30,12 +30,12 @@ cdef class ProgressBar:
|
|||||||
off_t maxi,
|
off_t maxi,
|
||||||
dict config={},
|
dict config={},
|
||||||
str head="",
|
str head="",
|
||||||
double seconde=0.1,
|
double seconds=5,
|
||||||
cut=False):
|
cut=False):
|
||||||
|
|
||||||
self.starttime = self.clock()
|
self.starttime = self.clock()
|
||||||
self.lasttime = self.starttime
|
self.lasttime = self.starttime
|
||||||
self.tickcount = <clock_t> (seconde * CLOCKS_PER_SEC)
|
self.tickcount = <clock_t> (seconds * CLOCKS_PER_SEC)
|
||||||
self.freq = 1
|
self.freq = 1
|
||||||
self.cycle = 0
|
self.cycle = 0
|
||||||
self.arrow = 0
|
self.arrow = 0
|
||||||
|
Reference in New Issue
Block a user