Subject: Timer roll over in microtime()
To: None <tech-kern@NetBSD.org>
From: blue horn <neelgusano@yahoo.com>
List: tech-kern
Date: 07/19/2006 09:04:53
Hi, 
  I am experiencing timer rollover in my code.
  

   struct timeval    now; 
   microtime(&now);
   printf ("\n Process: [%d] Time:[%ld]",
                p->p_pid,
                now.tv_sec*100000 + now.tv_usec);

 Output of vr/log/message file:
 05:47:42: Process:[13] Time:[2145071681]
 05:48:13  Process:[13] Time:[-2146785080] 
 05:48:13  Process:[13] Time:[-2146785080]

and it .. continues...

how do i handle this?

Thanks,
NB

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com