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

QuantEcon / QuantEcon.py / 17255357600
93%

Build:
DEFAULT BRANCH: main
Ran 27 Aug 2025 02:15AM UTC
Jobs 3
Files 160
Run time 1min
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

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>

90 of 124 new or added lines in 4 files covered. (72.58%)

7599 of 8231 relevant lines covered (92.32%)

2.77 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
6
95.68
-3.21% quantecon/util/tests/test_timing.py
28
70.67
-13.49% quantecon/util/timing.py
Jobs
ID Job ID Ran Files Coverage
1 17255357600.1 27 Aug 2025 02:15AM UTC 160
92.32
GitHub Action Run
2 17255357600.2 27 Aug 2025 02:15AM UTC 160
92.32
GitHub Action Run
3 17255357600.3 27 Aug 2025 02:16AM UTC 160
92.32
GitHub Action Run
Source Files on build 17255357600
  • Tree
  • List 160
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • e796ebaf on github
  • Prev Build on main (#17255195570)
  • Next Build on main (#17255640951)
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