• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

QuantEcon / QuantEcon.py / 17255357600 / 3
93%
main: 93%

Build:
DEFAULT BRANCH: main
Ran 27 Aug 2025 02:16AM UTC
Files 160
Run time 4s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

27 Aug 2025 02:09AM UTC coverage: 92.322% (-0.3%) from 92.626%
17255357600.3

push

github

web-flow
ENH: Add timeit function for multiple runs timing with statistics (#794)

* Initial plan

* Implement Timer multiple runs enhancement with runs parameter

Co-authored-by: mmcky <8263752+mmcky@users.noreply.github.com>

* Add time_run() context manager for multiple runs mode

- Implement time_run() method that returns a context manager for timing individual runs
- Allow usage pattern: with Timer(runs=5): for i in range(5): with timer.time_run(): ...
- Enhanced __exit__ to compute statistics when all runs are completed in context manager mode
- Add comprehensive tests for new time_run functionality
- Maintain full backward compatibility with existing timeit() method and single run mode

Co-authored-by: mmcky <8263752+mmcky@users.noreply.github.com>

* Simplify Timer API by removing time_run() method

- Remove _RunTimer class and time_run() method as requested
- Context manager now only supports single runs (runs=1)
- Multiple runs only supported via timeit() method
- Update tests to reflect simplified API
- Maintain full backward compatibility for existing usage patterns

Co-authored-by: mmcky <8263752+mmcky@users.noreply.github.com>

* Implement timeit function as requested - revert Timer to original simple form and add separate timeit function

Co-authored-by: mmcky <8263752+mmcky@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: mmcky <8263752+mmcky@users.noreply.github.com>
Co-authored-by: Matt McKay <mmcky@users.noreply.github.com>

7599 of 8231 relevant lines covered (92.32%)

0.92 hits per line

Source Files on job 17255357600.3
  • Tree
  • List 160
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 17255357600
  • e796ebaf on github
  • Prev Job for on main (#17255195570.3)
  • Next Job for on main (#17255640951.3)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc