# More Efficient Overlay Timer

Credit to JoeTheChicken (https://forum.creative.gimkit.com/u/JoeTheChicken) for inspiration.
Here is the link to the original timer How to make a colon-separated timer (Difficulty: đźź¨).

To create an overlay timer, you only need 3 properties, 1 game overlay device, 1 repeater, and 1 button/lifecycle.
This saves slightly more memory than the original clock.

Name one of each the properties â€śhoursâ€ť, â€śminutesâ€ť, or â€śsecondsâ€ť for organization. The properties should all have a starting value of 0 and be a number.
The default text of the overlay device should be 0:00:00.

Set the repeater to repeat every second, to start upon receiving a signal from the lifecycle/button, to NOT trigger upon starting the game, and to transmit a signal to a channel.

The channel that the repeater transmits to should activate the code inside the overlay device.

Upon receiving a signal from the repeater, the overlay device will increase the value of â€śsecondsâ€ť by 1. If â€śsecondsâ€ť or â€śminutesâ€ť is equal to 60, they are both reset to 0, and â€śminutesâ€ť or â€śhoursâ€ť is increased by 1, respectively.

To make the clock look more like a standard analog clock that includes unnecessary 0s in the minutes and seconds, the code checks if â€śsecondsâ€ť or â€śminutesâ€ť is a two-digit number. If they are two-digit numbers, the code sets the variables â€śsecondsTextâ€ť and â€śminutesTextâ€ť to â€ś:[seconds]â€ť and â€ś:[minutes]â€ť, respectively. If the variables ARE NOT two-digit numbers, the variables are set to â€ś:0[seconds]â€ť and â€ś:0[seconds]â€ť.

Finally, the code concatenates â€śhoursâ€ť, â€śminutesTextâ€ť, and â€śsecondsTextâ€ť and sets the overlay device to that value.

I did not include the extra 0 for hours because this code already uses 72 blocks and no person is playing a Gimkit game for more than 10 hours.
Make sure to create the variables first before trying to store values.

11 Likes

I need to use this for a game. Thanks!

2 Likes

great guide! the pictures would really help many new gimkit users

I wonâ€™t personally use this, but cool!

Bump

0:00:02
0:00:01
0:00:00

# Bump

Iâ€™m so using this when platforming is avalivble to the non-season-ticketers
srry 4 spelling im in a hurry bye guys!