Discord
Login
Community
DARK THEME

can you help me

how i can code an stoppwatch

https://microstudio.dev/i/PaulSt/clock/

this is just an example of how it can be done, not working code.

you remember the system time at which the stopwatch was started.

start_time = system.time()

you set the clock to stopwatch mode

clock.mode = stopwatch

you send the differences between the current time and the clock start time to the code that is responsible for drawing the clock.

clock.stopwatch( system.time()-start_time )
clock.draw()

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community