Read this : http://www.xml.com/ldd/chapter/book/ch06.html Its about reading time in kernel. - Gaurav On Tue, 22 Mar 2005 06:35:40 -0800, Suneel Kandru <suneel.kandru@xxxxxxxxxxxxxxxxxxx> wrote: > > I want to find the data transfer time > > I have code like this > > > > timeRetVal = gettimeofday(&tp,&tz); > if(timeRetVal != -1) > lStartTime = tp.tv_usec; > > Transferdata(); > > timeRetVal = gettimeofday(&tp,&tz); > if(timeRetVal != -1) > { > lEndTime = tp.tv_usec; > } > > lTime = lEndTime - lStartTime; > > > > How come some times lEndTime value is less than lStartTime value is there > any other function to get the tick count. > > > Thanks > > > > > > > > -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/