FreeBASIC  0.91.0
time_timer.c
Go to the documentation of this file.
1 /* timer() function */
2 
3 #include "../fb.h"
4 #include <time.h>
5 #include <sys/time.h>
6 
7 FBCALL double fb_Timer( void )
8 {
9  struct timeval tv;
10  gettimeofday(&tv, NULL);
11  return (((double)tv.tv_sec * 1000000.0) + (double)tv.tv_usec) * 0.000001;
12 }