> For the complete documentation index, see [llms.txt](https://marrow.skeletonarmyftc.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://marrow.skeletonarmyftc.com/concepts/time-awareness.md).

# Time Awareness

How to utilize TimerEx

In autonomous, every second counts. Even the most reliable and fast routines can fall short if they don’t account for the time. Without time awareness, your robot risks:

* Running out of time before finishing a scoring cycle.
* Wasting the final seconds driving nowhere instead of parking.
* Missing an opportunity to grab last-second points with a last-ditch attempt score.

This is where **time-aware strategies** come into play. By keeping track of the remaining time in a match, your robot can make better decisions dynamically.

***

## Real-World Scenarios

* The robot is mid-cycle with only 1 second left - so it pushes for maximum speed to score the game element.
* With 3 seconds remaining, the robot knows it doesn't have enough time to attempt one more cycle - so it chooses to park and secure guaranteed points.
* A subsystem can automatically change modes at the 30-second teleop mark (e.g., preparing a hang mechanism).

***

## Using Marrow

To make this easier, Marrow provides [`TimerEx`](https://marrow.skeletonarmyftc.com/automations/timerex.md).

Instead of writing your own timers, [`TimerEx`](https://marrow.skeletonarmyftc.com/automations/timerex.md) gives you a clean and readable interface for checking elapsed/remaining time and triggering behaviors based on the match clock.

For a full breakdown of how to use it in your own code, see the [`TimerEx` reference page](https://marrow.skeletonarmyftc.com/automations/timerex.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://marrow.skeletonarmyftc.com/concepts/time-awareness.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
