Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rewrote a more precise tic and toc #1646

Merged

Conversation

GillesDuvert
Copy link
Contributor

Rewrote tic and toc to avoid creating !TICK and more generally stay closer to the original, including existing undocumented features.

Incidentally this saves a lot of cpu time (? why? this needs to be investigated) and the reported times are now good, i.e., always similar to what would report a construction like x=systime(/sec) & ... do something ... & print,"Time elapsed : ", systime(/sec)-x

Doing that I found a bug in resolve_routine that is now corrected by PR #1645. The new tictoc procedures would not work without this PR, and I'm surprized the bug was not reported earlier.

As usual, when writing an equivalent of existing IDL procedures, I stick to the exact same functionalities, no more 'internal help' or 'test' features, that complicate code and possibly make it slower.

…loser to the original; including possibility for (future) report and undocumented features.

Incidentally this saves a lot of cpu time and the reported times are now good, i.e., always similar to what would report a construction like
x=systime(/sec) & ... do something ... & print,"Time elapsed : ", systime(/sec)-x
@codecov
Copy link

codecov bot commented Sep 29, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (70b6513) 41.00% compared to head (08818e9) 39.85%.
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1646      +/-   ##
==========================================
- Coverage   41.00%   39.85%   -1.15%     
==========================================
  Files         355      355              
  Lines       95042    95042              
  Branches    19530    19565      +35     
==========================================
- Hits        38968    37882    -1086     
- Misses      56074    57160    +1086     

see 26 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@GillesDuvert GillesDuvert merged commit d916560 into gnudatalanguage:master Sep 29, 2023
7 of 8 checks passed
@GillesDuvert GillesDuvert deleted the new_tictoc_procedures branch July 2, 2024 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant