# 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](/development/features/editing-values.md) page.

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

<figure><img src="/files/7TQnVNRzaVFs4Mi2ybG5" 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.*


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.holofair.app/development/features/timer.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
