clock time in milliseconds into a c program

Steve Watt steve at Watt.COM
Wed Jan 19 16:46:02 PST 2005


In article <20050120004406.GF921 at einstein.lab> you write:
>
>Hi, I need to clock the function execution time into a C
>program. I know /usr/include/time.h library but I need to
>clock the time in milliseconds.
>
>Any suggestions, links?

% man clock_gettime

Is nanoseconds too much?

-- 
Steve Watt KD6GGD  PP-ASEL-IA          ICBM: 121W 56' 57.8" / 37N 20' 14.9"
 Internet: steve @ Watt.COM                         Whois: SW32
   Free time?  There's no such thing.  It just comes in varying prices...


More information about the freebsd-hackers mailing list