Berkeley CSUA MOTD:Entry 10731
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/04/15 [General] UID:1000 Activity:popular
4/15    

2003/10/22 [Uncategorized] UID:10731 Activity:nil
10/21   Is there a POSIX/ISO/??? standard for getting the current time?
        My function needs to timeout after X useconds, but I don't know
        how to compare startTime to endTime.  Thanks.
        \_ use time() to get the seconds since the epoch.
           \_ that won't yield useconds.
        \_ gettimeofday()? But if you want to wait, use select.