Clockify.Net icon indicating copy to clipboard operation
Clockify.Net copied to clipboard

Stop running Stopwatch

Open JOEcom opened this issue 4 months ago • 1 comments

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.

JOEcom avatar Sep 09 '25 11:09 JOEcom

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!

Psypher9 avatar Sep 09 '25 19:09 Psypher9