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

Basic time tracking #384

Merged
merged 2 commits into from
Nov 14, 2023
Merged

Basic time tracking #384

merged 2 commits into from
Nov 14, 2023

Conversation

dschlaep
Copy link
Member

- addressing #380

- new struct `SW_WALLTIME` with elements for keeping track of overall time, simulation set time, and individual simulation units (and variation)
- new type `WallTimeSpec` that holds time information

- if compiled for C99, then `time_t` and `time()` are utilized (but temporal resolution may only be full seconds)
- if compiled for C11 or later, then `timespec` and `timespec_get(., TIME_UTC)` are utilized (with potential sub-second temporal resolution)
@dschlaep dschlaep changed the base branch from master to release/devel_v8.0.0 November 13, 2023 16:30
Copy link

codecov bot commented Nov 13, 2023

Codecov Report

Attention: 32 lines in your changes are missing coverage. Please review.

Comparison is base (d1c71ca) 71.22% compared to head (8ba3bc0) 71.00%.

Files Patch % Lines
src/Times.c 64.58% 17 Missing ⚠️
src/SW_Control.c 0.00% 10 Missing ⚠️
src/SW_Main_lib.c 0.00% 5 Missing ⚠️
Additional details and impacted files
@@                   Coverage Diff                    @@
##           release/devel_v8.0.0     #384      +/-   ##
========================================================
- Coverage                 71.22%   71.00%   -0.23%     
========================================================
  Files                        21       21              
  Lines                      5530     5591      +61     
========================================================
+ Hits                       3939     3970      +31     
- Misses                     1591     1621      +30     

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

@dschlaep dschlaep requested a review from N1ckP3rsl3y November 13, 2023 16:40
@dschlaep dschlaep merged commit 2b9323b into release/devel_v8.0.0 Nov 14, 2023
5 of 7 checks passed
@dschlaep dschlaep deleted the feature_walltime branch November 14, 2023 13:30
@dschlaep dschlaep linked an issue Jun 6, 2024 that may be closed by this pull request
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.

Basic time tracking
2 participants