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

Piping a timer and stopping it doesn't seem to update duration #2

Closed
jdhitsolutions opened this issue Oct 24, 2018 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@jdhitsolutions
Copy link
Owner

I can start a timer:

start-mytimer xzy
Name            Start                  Duration         Running Description
----            -----                  --------         ------- -----------
xyz             10/24/2018 5:14:06 PM  00:00:00            True

if I run stop-mytimer the duration is maintained.

PS S:\> stop-mytimer xyz

Name            Start                  Duration         Running Description
----            -----                  --------         ------- -----------
xyz             10/24/2018 5:14:06 PM  00:00:43.6023795   False


PS S:\> get-mytimer xyz

Name            Start                  Duration         Running Description
----            -----                  --------         ------- -----------
xyz             10/24/2018 5:14:06 PM  00:00:43.6023795   False

But if I start a timer and then pipe it and stop it, it doesn't.

PS S:\> start-mytimer zzz

Name            Start                  Duration         Running Description
----            -----                  --------         ------- -----------
zzz             10/24/2018 5:15:53 PM  00:00:00            True

PS S:\> get-mytimer zzz | stop-mytimer

Name            Start                  Duration         Running Description
----            -----                  --------         ------- -----------
zzz             10/24/2018 5:15:53 PM  00:00:38.5946289   False


PS S:\> get-mytimer zzz

Name            Start                  Duration         Running Description
----            -----                  --------         ------- -----------
zzz             10/24/2018 5:15:53 PM  00:00:00           False
@jdhitsolutions jdhitsolutions added the bug Something isn't working label Oct 24, 2018
@jdhitsolutions
Copy link
Owner Author

Updated in v0.7.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant