Skip to content

Instantly share code, notes, and snippets.

@aboekhoff
Created December 23, 2010 03:23
Show Gist options
  • Save aboekhoff/752511 to your computer and use it in GitHub Desktop.
Save aboekhoff/752511 to your computer and use it in GitHub Desktop.
;; 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