We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca2c527 commit 8b1a1c3Copy full SHA for 8b1a1c3
packages/client/composables/useTimer.ts
@@ -16,6 +16,8 @@ export function useTimer() {
16
interval.counter.value
17
if (state.value.status === 'stopped' || !state.value.startedAt)
18
return 0
19
+ if (state.value.status === 'paused')
20
+ return state.value.pausedAt - state.value.startedAt
21
return Date.now() - state.value.startedAt
22
})
23
const passed = computed(() => passedMs.value / 1000)
0 commit comments