Stop running Stopwatch
Is there a way to stop a running TimeEntry?
I have started the stopwatch with CreateTimeEntryAsync().
var now = DateTimeOffset.UtcNow; var timeEntryRequest = new TimeEntryRequest { Start = now, ProjectId = projectId, TaskId = taskId, }; var createResult = await clockify.CreateTimeEntryAsync(_workspaceId, timeEntryRequest);
Now I want to stop the stopwatch without starting a new time entry.
Hi! Thanks for your question. You bring up a good point. There isn't support for specifically stopping an active stopwatch, however, if you have a reference for the time entry, you can use the UpdateTimeEntryAsync method.
We should add support for the stopwatch stopping though. Thank you for noting it!