Changing / Setting the current time of stopwatch

For the example of stopwatch, we can get the current time by Stopwatch.GetSeconds().

But, how to set the current time?

For example, the time counting is from 00:00:00 to 00:10:00 and paused, then set the time +10 sec to 00:20:00, when I start it again it should be counted from 00:20:00.

Thank you.

Hi, this example uses some custom Uno code. You can extend the class Stopwatch that you find in Stopwatch.uno to introduce this functionality. Uno is very similar to C#, so if you know C# (or a similar language like Java), this should be fairly easy. To learn more about Uno, have a look at https://www.fusetools.com/learn/uno.

Thank you very much! I think it’s time to touch sth new :3.