Skip to content

feat: human readable time format #6

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

Merged
merged 1 commit into from
Jan 6, 2020
Merged

Conversation

atymic
Copy link
Contributor

@atymic atymic commented Jan 5, 2020

As per #2 the human format was not implemented.

This implements that, I grabbed the conversion function from PHPunit.

Tests updated as well :)

@codecov
Copy link

codecov bot commented Jan 5, 2020

Codecov Report

Merging #6 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##             master     #6   +/-   ##
=======================================
  Coverage       100%   100%           
- Complexity       21     26    +5     
=======================================
  Files             2      2           
  Lines            46     54    +8     
=======================================
+ Hits             46     54    +8
Impacted Files Coverage Δ Complexity Δ
src/Timer.php 100% <100%> (ø) 18 <4> (+5) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c378114...1639520. Read the comment docs.

@Ayesh
Copy link
Owner

Ayesh commented Jan 6, 2020

This is awesome, thank you. I'm on my phone, but this looks great.

I will merge as soon as I get back. Thanks again for this PR.

@atymic
Copy link
Contributor Author

atymic commented Jan 6, 2020

No worries :)

@Ayesh Ayesh merged commit 4041f97 into Ayesh:master Jan 6, 2020
@Ayesh
Copy link
Owner

Ayesh commented Jan 6, 2020

Thanks again for the PR. I have merged it. I will start working on the Formatter class that I was planning to refactor the formatting functionality to.

@atymic atymic deleted the format-human branch January 6, 2020 21:30
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.

2 participants