File: time.md

package info (click to toggle)
surgescript 0.5.4.4-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,876 kB
  • sloc: ansic: 13,674; makefile: 16
file content (31 lines) | stat: -rw-r--r-- 766 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Time
====

Time utilities. This object is available simply by typing `Time`.

Properties
----------

#### time

`time`: number, read-only.

The number of seconds since the application was started at the beginning of this frame.

#### delta

`delta`: number, read-only.

The time, in seconds, taken to complete the last frame of the application. Use this value to make your application behave consistently regardless of the frame rate.

#### now

`now`: number, read-only.

The number of seconds since the application was started at the moment this property is evaluated.

*Available since:* SurgeScript 0.5.4

> **Note:**
>
> Since `Time.now` may return different values during the same frame of your application, it's generally advisable to use `Time.time` instead.