> For the complete documentation index, see [llms.txt](https://sandbox-docs.verifone.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sandbox-docs.verifone.com/adk-5.0-programmers-guide/readme/namespaces/namespacesdi/classsdi_1_1_timer.md).

# Timer

[Public Member Functions](#pub-methods)

`#include <`[sdi\_timer.h](/adk-5.0-programmers-guide/sdi__timer_8h_source.md)`>`

|                         |                                                                                                                                                            |
| ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Public Member Functions |                                                                                                                                                            |
|                         | [Timer](#a6a8bc5014802d569f6d01c4f36121a81) ()                                                                                                             |
| bool                    | [isTimedOut](#a65d221db327e04216437a41d77dfc7b6) ()                                                                                                        |
| long                    | [getRemainingTimeInMs](#a38d4659025d743beb394f95c2fdc96d2) ()                                                                                              |
| void                    | [disable](#a8cfbbe53c1cf6e3054736daea3044c0f) ()                                                                                                           |
| bool                    | [isEnabled](#a56722b6f1c22da04885bc9853148bb71) ()                                                                                                         |
| void                    | [set](#a639ad993472d4463039cb81156013d3a) (const [TimeStamp](/adk-5.0-programmers-guide/readme/namespaces/namespacesdi/classsdi_1_1_time_stamp.md) \&tout) |
| void                    | [set](#a28ea74295a47dd29af35d2382f168d41) (unsigned tout\_ms)                                                                                              |

### Constructor& Destructor Documentation

### Timer() <a href="#a6a8bc5014802d569f6d01c4f36121a81" id="a6a8bc5014802d569f6d01c4f36121a81"></a>

[Timer](/adk-5.0-programmers-guide/readme/namespaces/namespacesdi/classsdi_1_1_timer.md)

inline

constructor

### MemberFunction Documentation <a href="#member-function-documentation" id="member-function-documentation"></a>

### disable() <a href="#a8cfbbe53c1cf6e3054736daea3044c0f" id="a8cfbbe53c1cf6e3054736daea3044c0f"></a>

void disable

inline

disable this timer

### getRemainingTimeInMs() <a href="#a38d4659025d743beb394f95c2fdc96d2" id="a38d4659025d743beb394f95c2fdc96d2"></a>

long getRemainingTimeInMs

get remaining time in milliseconds

#### Returns

remaining time in milliseconds

### isEnabled() <a href="#a56722b6f1c22da04885bc9853148bb71" id="a56722b6f1c22da04885bc9853148bb71"></a>

bool isEnabled

inline

check, if this timer was enabled by [set()](#a639ad993472d4463039cb81156013d3a)

#### Returns

true if this timer was enabled else false

### isTimedOut() <a href="#a65d221db327e04216437a41d77dfc7b6" id="a65d221db327e04216437a41d77dfc7b6"></a>

bool isTimedOut

check, if this timer has expired

#### Returns

true for timeout else false

### set()\[1/2] <a href="#a639ad993472d4463039cb81156013d3a" id="a639ad993472d4463039cb81156013d3a"></a>

void set

enables and sets the timeout as [TimeStamp](/adk-5.0-programmers-guide/readme/namespaces/namespacesdi/classsdi_1_1_time_stamp.md) object from now

**Parameters**

\[in] **tout** timeout specified as TimeStamp object

### set()\[2/2] <a href="#a28ea74295a47dd29af35d2382f168d41" id="a28ea74295a47dd29af35d2382f168d41"></a>

void set

enables and sets the timeout in milliseconds from now

**Parameters**

\[in] **tout\_ms** timeout specified in milliseconds

***

The documentation for this class was generated from the following files:

* sdi/src/[sdi\_timer.h](/adk-5.0-programmers-guide/sdi__timer_8h_source.md)
* sdi/src/[sdi\_timer.cpp](/adk-5.0-programmers-guide/readme/files/dir_44d926a17fc606d3c25449ba60427c63/dir_048f823fee1bfb22502a8732b9a001aa/sdi__timer_8cpp.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 dynamically by asking a question.

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

```
GET https://sandbox-docs.verifone.com/adk-5.0-programmers-guide/readme/namespaces/namespacesdi/classsdi_1_1_timer.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
