aboutsummaryrefslogtreecommitdiffstats
path: root/timing.scm
blob: 4887af3a91a7c056cb21c2a1bacbe799b2f9fd65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
;;; ------------------------
;;; Timing-related functions
;;; ------------------------

;; Set target FPS (maximum)
;; void SetTargetFPS(int fps);
(define set-target-fps
  (c-lambda (int) void "SetTargetFPS"))

;; Get time in seconds for last frame drawn (delta time)
;; float GetFrameTime(void);
(define get-frame-time
  (c-lambda () float "GetFrameTime"))

;; Get elapsed time in seconds since InitWindow()
;; double GetTime(void);
(define get-time
  (c-lambda () double "GetTime"))

;; Get current FPS
;; int GetFPS(void);
(define get-fps
  (c-lambda () int "GetFPS"))