In message <00d501c22dc4$57d08b00$0200a8c0@twothousand>, "Andrei 
Cojocaru" writ
es:
> I was asking around in #freebsdhelp on EFNet what the equivalent of
> GetTickCount() in the Win32 API is in FreeBSD.
> 
> I need a way to properly determine passage of time that is not affected if I
> change the system clock for example. The only way I'm aware that you can do
> that is by counting the number of clock cycles since system startup. What
> function does that in FreeBSD? I'd also like a Linux way if possible. (that
> is a way that will work across all UNIX clones). Thanks and please include
> my email in the reply directly since I'm not signed up to this mailing list.
> Thanks once again.

How about time(3)?


--
Cheers,                          Phone:  250-387-8437
Cy Schubert                        Fax:  250-387-5766
Team Leader, Sun/Alpha Team      Email:  [EMAIL PROTECTED]
Open Systems Group, CITS
Ministry of Management Services
Province of BC            
                    FreeBSD UNIX:  [EMAIL PROTECTED]




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to