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

New print methods in Stopwatch and MonitoredOperation #69

Merged
merged 7 commits into from Mar 4, 2023

Conversation

oswaldobapvicjr
Copy link
Owner

@oswaldobapvicjr oswaldobapvicjr commented Feb 26, 2023

Add new methods for printing elapsed times that determine the format automatically based on the PrintStyle:

  • Stopwatch.print(PrintStream)
  • Stopwatch.print(PrintStream, PrintStyle)
  • MonitoredOperation.print(PrintStream)
  • MonitoredOperation.print(PrintStream, PrintStyle)

@oswaldobapvicjr oswaldobapvicjr self-assigned this Feb 26, 2023
@oswaldobapvicjr oswaldobapvicjr added the enhancement New feature or request label Feb 26, 2023
@oswaldobapvicjr oswaldobapvicjr marked this pull request as draft February 26, 2023 02:39
@codecov
Copy link

codecov bot commented Feb 26, 2023

Codecov Report

Merging #69 (e6063a2) into master (315461f) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##             master      #69      +/-   ##
============================================
+ Coverage     99.51%   99.52%   +0.01%     
- Complexity      314      330      +16     
============================================
  Files            20       20              
  Lines           818      846      +28     
  Branches         36       36              
============================================
+ Hits            814      842      +28     
  Misses            1        1              
  Partials          3        3              
Impacted Files Coverage Δ
...ain/java/net/obvj/performetrics/Performetrics.java 100.00% <100.00%> (ø)
...rc/main/java/net/obvj/performetrics/Stopwatch.java 100.00% <100.00%> (ø)
...a/net/obvj/performetrics/config/Configuration.java 100.00% <100.00%> (ø)
...bvj/performetrics/monitors/MonitoredOperation.java 100.00% <100.00%> (ø)
.../net/obvj/performetrics/util/print/PrintStyle.java 100.00% <100.00%> (ø)
.../net/obvj/performetrics/util/print/PrintUtils.java 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@oswaldobapvicjr oswaldobapvicjr marked this pull request as ready for review March 4, 2023 04:22
@oswaldobapvicjr oswaldobapvicjr merged commit cc6acd1 into master Mar 4, 2023
@oswaldobapvicjr oswaldobapvicjr deleted the issue/0069 branch March 4, 2023 04:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant