Commit 9a9afde1 by Celine Mercier

Cython: progress bar: set default refresh rate to 5 seconds

parent 8dd403a1
...@@ -30,12 +30,12 @@ cdef class ProgressBar: ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment