File: time.md

package info (click to toggle)
surgescript 0.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,200 kB
  • sloc: ansic: 15,748; sh: 61; javascript: 38; makefile: 13
file content (31 lines) | stat: -rw-r--r-- 815 bytes parent folder | download
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.

Elapsed time, in seconds, since the application was started and measured at the beginning of the current 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.

Elapsed time, in seconds, since the application was started and measured at the moment this property is evaluated.

*Available since:* SurgeScript 0.5.4

!!! tip

    It's generally advisable to use [Time.time](#time) instead, because [Time.now](#now) may return different values in the same frame of your application.