Skip to content

Commit 93b664a

Browse files
Copilotmmcky
andcommitted
Remove silent=True from Timer instances in numba lecture
Co-authored-by: mmcky <[email protected]>
1 parent e8f7230 commit 93b664a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lectures/numba.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,15 +135,15 @@ Let's time and compare identical function calls across these two versions, start
135135
```{code-cell} ipython3
136136
n = 10_000_000
137137
138-
with qe.Timer(silent=True) as timer1:
138+
with qe.Timer() as timer1:
139139
qm(0.1, int(n))
140140
time1 = timer1.elapsed
141141
```
142142

143143
Now let's try qm_numba
144144

145145
```{code-cell} ipython3
146-
with qe.Timer(silent=True) as timer2:
146+
with qe.Timer() as timer2:
147147
qm_numba(0.1, int(n))
148148
time2 = timer2.elapsed
149149
```
@@ -155,7 +155,7 @@ In fact, the next time and all subsequent times it runs even faster as the funct
155155
(qm_numba_result)=
156156

157157
```{code-cell} ipython3
158-
with qe.Timer(silent=True) as timer3:
158+
with qe.Timer() as timer3:
159159
qm_numba(0.1, int(n))
160160
time3 = timer3.elapsed
161161
```

0 commit comments

Comments
 (0)