# Ticks

| **Name**    | ***Ticks***                                                                           |
| ----------- | ------------------------------------------------------------------------------------- |
| Syntax      | Ticks (TimeSpan timeSpan)                                                             |
| Purpose     | To return the number of ticks in the specified timeSpan.                              |
| Description | Returns number of ticks in the specified timeSpan.                                    |
| Return Type | Int64                                                                                 |
| Parameter   | timeSpan \[System.TimeSpan] – TimeSpan for which the number of ticks will be returned |

![](/files/Ig1z89lZrTjl1byZsSjg)

**Example**

In this example, we will pass the required parameter to the function transformation object using a *Variables* object.

{% hint style="info" %}
**Note:** The following format will be used for the parameter value: dd:hh:mm:ss
{% endhint %}

Where,

*timeSpan* = 10.03:02:04

![](/files/dWBz2s5JXPmr3Ge7Jycw)

In the output window, you can see that the provided value’s number of ticks has been returned.

![](/files/az8vU0vj6XrPPiOdz8C6)


---

# 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://documentation.astera.com/functions/timespan/ticks.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.
