1 ! Copyright (C) 2008 Doug Coleman.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: kernel alien.syntax alien.c-types math unix.types
4 classes.struct accessors ;
15 : make-timeval ( us -- timeval )
21 : make-timespec ( nanos -- timespec )
40 FUNCTION: time_t time ( time_t* t ) ;
41 FUNCTION: tm* localtime ( time_t* clock ) ;
42 FUNCTION: int gettimeofday ( timespec* TP, void* TZP ) ;