[PD] difftime()

CK x at meta.lo-res.org
Mon Nov 18 07:45:04 CET 2002


I read:
> "difftime()" is a C++ function which serves a similar purpose.

quoting from the manual page:
.
.
> This  function  is required by ANSI C.  On a POSIX system, time_t is an
> arithmetic type, and one could just define
>
>       #define difftime(t1,t0) (double)(t1 - t0)
>
> when the possible overflow in the subtraction is  not  a  concern.   On
> other systems, the data type time_t might use some other encoding where
> subtraction doesn't work directly.
.
.

the two times have to be in epoch anyway so I guess you could get away with
a [-] object.

regards,

x

-- 
chris at lo-res.org	Postmodernism is german romanticism with better
http://pilot.fm/	special effects. (Jeff Keuss / via ctheory.com)




More information about the Pd-list mailing list