I am porting code from SunOS 4.1 to Solaris 2.3
In my original code I use both ftime() and gettimeofday().
While porting, I discovered that in Solaris 2, ftime is part of
the BSD compatability library, which the SUN people recommend not to use.
In Sun's porting guide the replacement for ftime is gettimeofday.
I then discovered some weird things about gettimeofday:
1. It gets 2 parameters in AIX & SunOS, and 1 in Solaris 2.3
2. It's prototype is non-existent in header files (Solaris & AIX)
3. It's not covered in Stevens' UNIX programming book, which usually
answers all my UNIX programming questions.
I can still use it, but the whole thing seems very fishy (as is my
spelling).