QuantEcon · GitHub

Commit 2d299c3

authored

FIX: update precision in numba timing (#405)

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • lectures

Lines changed: 2 additions & 2 deletions

Original file line numberDiff line numberDiff line change

@@ -227,12 +227,12 @@ This is equivalent to adding `qm = jit(qm)` after the function definition.

227227

The following now uses the jitted version:

228228
229229

```{code-cell} ipython3

230-

with qe.Timer():

230+

with qe.Timer(precision=4):

231231

qm(0.1, 100_000)

232232

```

233233
234234

```{code-cell} ipython3

235-

with qe.Timer():

235+

with qe.Timer(precision=4):

236236

qm(0.1, 100_000)

237237

```

238238

0 commit comments

Comments

 (0)

Read the original on github.com ↗