- Contents:
- Initializes the time subsystem of Sugar.
- Is called by
init_sugar()
.
- Updates the time subsystem.
- Is automatically called around
love.update()
.
- Sets a cap to the number of frames per second.
- Sugarcoat will wait so that
1/fps
seconds passes between each frame. - Call
set_frame_waiting()
to remove the fps cap. - Sugarcoat doesn't set any fps cap until you call this function.
- Returns the time in seconds since the program's start-up.
- Alias for
t()
.
- Returns the time between this frame and the previous one.
- Alias for
dt()
.
- Stops the program for
sec
seconds. - Using this function will affect
dt()
.
- Stops the program for
sec
seconds. - Using this function will not affect
dt()
.
- Returns the current averaged number of frames-per-second.
- This is affected by
set_frame_waiting(...)
.
- Returns the current raw number of frames-per-second.
- This is affected by
set_frame_waiting(...)
.
- Returns the averaged time to complete one of the 16 last frames.
- This can be used to mesure performance. The lower frame time, the better performance.
- Returns the raw time to complete the last frame.
- Get the system time in the local time zone.
- Returns, in this order:
- seconds (
0 - 59
) - minutes (
0 - 59
) - hour (
0 - 23
) - day (
1 - 31
) - month (
1 - 12
) - year (full year)
- week day (
1 - 7
)
- seconds (
- Get the system time as UTC time.
- Returns, in this order:
- seconds (
0 - 59
) - minutes (
0 - 59
) - hour (
0 - 23
) - day (
1 - 31
) - month (
1 - 12
) - year (full year)
- week day (
1 - 7
)
- seconds (