move wall-time def above use
This commit is contained in:
parent
34355949bd
commit
7fad870b21
10
3bb-1.lisp
10
3bb-1.lisp
|
@ -32,6 +32,12 @@
|
||||||
(defparameter *position* (make-array 3 :initial-contents
|
(defparameter *position* (make-array 3 :initial-contents
|
||||||
'(0 0 -3)))
|
'(0 0 -3)))
|
||||||
|
|
||||||
|
(let ((time-units (/ 1.0 internal-time-units-per-second)))
|
||||||
|
(defun wall-time (&key (offset 0))
|
||||||
|
(+ (* (get-internal-real-time) time-units)
|
||||||
|
offset)))
|
||||||
|
|
||||||
|
|
||||||
(defparameter *start-time* (wall-time))
|
(defparameter *start-time* (wall-time))
|
||||||
|
|
||||||
(defparameter *last-time* nil)
|
(defparameter *last-time* nil)
|
||||||
|
@ -43,10 +49,6 @@
|
||||||
(make-array (length faces) :initial-contents
|
(make-array (length faces) :initial-contents
|
||||||
(loop for i across faces collecting (aref *v* i))))
|
(loop for i across faces collecting (aref *v* i))))
|
||||||
|
|
||||||
(let ((time-units (/ 1.0 internal-time-units-per-second)))
|
|
||||||
(defun wall-time (&key (offset 0))
|
|
||||||
(+ (* (get-internal-real-time) time-units)
|
|
||||||
offset)))
|
|
||||||
|
|
||||||
|
|
||||||
(defun shift-color (time)
|
(defun shift-color (time)
|
||||||
|
|
Loading…
Reference in New Issue