# uint32 u32TickCount\_ms

システムの始動時からの ms タイムスタンプです。

| 解説                                                                                                                                                 |
| -------------------------------------------------------------------------------------------------------------------------------------------------- |
| タイムスタンプの更新は [TickTimer](/hw-api-ref/perifuraru/ticktimer.md) の周期（ハードウェア割り込みハンドラ内）で実施されます。例えば TickTimer の周期\[ms]が 4ms の場合、タイムスタンプも 4 ずつカウントアップされます。 |
| 最大値カウント値を越えると 0 に戻ります。                                                                                                                             |
| `{過去タイムスタンプ} - {現在のタイムスタンプ}` を計算すれば、過去からの経過時間（最大カウントを超えない範囲）が計算できます。                                                                               |
| スリープ復帰時のスタート値は不定です。スリープ前に保存した値を引用してスリープ後に処理を行わないようにしてください。                                                                                         |


---

# 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://sdk.twelite.info/twelite-net-api-ref/gurbaru/uint32-u32tickcount_ms.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.
