I have following code:
gettimeofday(&tv1,NULL);
// do something here
gettimeofday(&tv2,NULL);
printf("Elapsed time is: %d seconds\n", tv2.tv_sec-tv1.tv_sec);
///
each time I get the following outcome:
Elapsed time is: -114016690
GLib 2.12.1 is now available for download at:
ftp://ftp.gtk.org/pub/gtk/v2.12/
http://download.gnome.org/sources/glib/2.12/
glib-2.12.1.tar.bz2 md5sum: 97786d2a03f0f190bd782749139dc10c
glib-2.12.1.tar.gzmd5sum: 5273280fb79dd959cd54351fbd57e80e
GLib is the low-level core library that form