Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] timing for geeks
- Date: Sat, 3 Dec 2005 10:24:39 +0900
- From: Josh Glover <jmglov@example.com>
- Subject: Re: [tlug] timing for geeks
- References: <20051202154627.GB4348@example.com> <20051202152527.302e2f6f.jep200404@example.com>
On 12/3/05, Jim <jep200404@example.com> wrote: > Of course, even if it is monotonic, you should avoid using ftime. Yeah, use gettimeofday(2) instead: #include <stdio.h> #include <stdlib.h> #include <sys/time.h> int main(int argc,char *argv[]) { struct timeval start; for (;;) { gettimeofday(&start, NULL); printf("%d.%03ld \t \n",(int)start.tv_sec,start.tv_usec*1000); } return 0; } -Josh
- References:
- [tlug] timing for geeks :)
- From: Michal Hajek
- Re: [tlug] timing for geeks
- From: Jim
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Video Clips
- Next by Date: Re: [tlug] Mea Culpa
- Previous by thread: Re: [tlug] timing for geeks
- Next by thread: Re: [tlug] timing for geeks
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links