Clock.restart

Restart the clock.

This function puts the time counter back to zero. It also returns the time elapsed since the clock was started.

class Clock
Duration
restart
()

Return Value

Type: Duration

Time elapsed.

Meta