gabriel rosenkoetter on Fri, 23 Feb 2001 21:53:06 -0500 |
On Fri, Feb 23, 2001 at 09:54:34PM -0500, Charles Stack wrote: > Anybody know how to get the equivalent of Window's GetTickCount() method > under Linux in C or C++? Need millisecond resolution and time.h doesn't > appear to give us the resolution we need. Have a look at times(2). (Used this to time some cache stress testing stuff for a computer architecture course last year; it's vaguely POSIX... or, at least, it also exists on Solaris 2.6 and NetBSD 1.4R-or-so. Ah, man page says "SVr4, SVID, POSIX, X/OPEN, BSD 4.3", so it's all over the place!) ~ g r @ eclipsed.net ______________________________________________________________________ Philadelphia Linux Users Group - http://www.phillylinux.org Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce General Discussion - http://lists.phillylinux.org/mail/listinfo/plug
|
|