# Timer

TimerView allows you to specificy unique logic for based on the current UTC time. It has UnityEvents that are called on Update. The timer's value (string) is a comma-seperated value of two UTC second values. When the value is updated, the view will parse these into doubles. But do not worry, you do not have to manually input these values. HoloFair's built-in edit features makes it more convinient to select them. It is explained in better details in the [Editing Values](https://docs.holofair.app/development/features/editing-values) page.

To set up Timer, add **TimerView** and **GuidComponent** to an object.

<figure><img src="https://4213294372-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fo4sRWPX77c58Cw1FjKCI%2Fuploads%2FBbmqkhlyknkmmmQQ6vDW%2FCapture.PNG?alt=media&#x26;token=d8368955-f6e5-41b2-a7d2-97d250899ec5" alt=""><figcaption></figcaption></figure>

TimerView has two values for time, *Start* and *End*. *OnBefore* event is invoked every update where the time now is less than the *Start time*. *OnDuring* is invoked every update where the time now is between *Start time* and *End time.* OnAfter is called when the time now is after the *End time.*
