mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +08:00
29 lines
798 B
Markdown
29 lines
798 B
Markdown
---
|
|
nav-title: "timer How-To"
|
|
title: "timer"
|
|
environment: nativescript
|
|
description: "Examples for using timer"
|
|
previous_url: /ApiReference/timer/HOW-TO
|
|
---
|
|
# Timer module
|
|
### How to require timer module
|
|
{%snippet timer-require%}
|
|
|
|
### Evaluates an expression after 0 milliseconds.
|
|
{%snippet timer-set-zero%}
|
|
|
|
### Evaluates an expression after 0 milliseconds.
|
|
{%snippet timer-set-zero-args%}
|
|
|
|
### Evaluates an expression after a specified number of milliseconds.
|
|
{%snippet timer-set-ten%}
|
|
|
|
### Cancels the evaluation with the clearTimeout method.
|
|
{%snippet timer-set-fifty%}
|
|
|
|
### Evaluates an expression each time a specified number of milliseconds has elapsed.
|
|
{%snippet timer-set-expression%}
|
|
|
|
### Cancel the interval previously started using the setInterval method.
|
|
{%snippet timer-set-interval%}
|