Created
December 23, 2010 03:23
-
-
Save aboekhoff/752511 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; SFML/System.h | |
;; //////////////////////////////////////////////////////////// | |
;; #ifndef SFML_SYSTEM_H | |
;; #define SFML_SYSTEM_H | |
;; //////////////////////////////////////////////////////////// | |
;; // Headers | |
;; //////////////////////////////////////////////////////////// | |
;; #include <SFML/Config.h> | |
;; #include <SFML/System/Clock.h> | |
;; #include <SFML/System/Mutex.h> | |
;; #include <SFML/System/Randomizer.h> | |
;; #include <SFML/System/Sleep.h> | |
;; #include <SFML/System/Thread.h> | |
;; #endif // SFML_SYSTEM_H | |
(require-extension bind) | |
(bind-file* "/usr/local/include/SFML/System.h") | |
(define clock (sfClock_Create)) | |
(define (now) (sfClock_GetTime clock)) | |
(let loop ((time (now))) | |
(display time) | |
(sfSleep 0.5) | |
(if (< (now) 5) | |
(loop (now)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment