/extra/time/time.factor
http://github.com/abeaumont/factor · Factor · 14 lines · 10 code · 2 blank · 2 comment · 1 complexity · 01da54209f45f57018be5e24b92f6ead MD5 · raw file
- ! Copyright (C) 2010 Doug Coleman.
- ! See http://factorcode.org/license.txt for BSD license.
- USING: combinators kernel system vocabs ;
- IN: time
- HOOK: set-time os ( timestamp -- )
- HOOK: adjust-time-monotonic os ( timestamp -- seconds )
- os {
- { [ dup macosx? ] [ drop "time.macosx" require ] }
- { [ dup windows? ] [ drop "time.windows" require ] }
- { [ dup unix? ] [ drop "time.unix" require ] }
- [ drop ]
- } cond