X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=src%2Fmisc.scm;fp=src%2Fmisc.scm;h=66bcf6f8395b16a932ebfc200f1b4912f259db8b;hb=8864bc71fcf9fd551bdb417a1b22655a9097dd30;hp=0000000000000000000000000000000000000000;hpb=4a9300c98ab89c99a26887b08e3a1c5bea41eb77;p=gacela.git diff --git a/src/misc.scm b/src/misc.scm new file mode 100644 index 0000000..66bcf6f --- /dev/null +++ b/src/misc.scm @@ -0,0 +1,25 @@ +;;; Gacela, a GNU Guile extension for fast games development +;;; Copyright (C) 2014 by Javier Sancho Fernandez +;;; +;;; This program is free software: you can redistribute it and/or modify +;;; it under the terms of the GNU General Public License as published by +;;; the Free Software Foundation, either version 3 of the License, or +;;; (at your option) any later version. +;;; +;;; This program is distributed in the hope that it will be useful, +;;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with this program. If not, see . + + +(define-module (gacela misc)) + + +(define (current-utime) + (let ((t (gettimeofday))) + (+ (* (car t) 1000000) (cdr t)))) + +(export current-utime)