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 
6 FBCALL double fb_Timer( void )
7 {
8  struct timeval tv;
9  gettimeofday(&tv, NULL);
10  return (((double)tv.tv_sec * 1000000.0) + (double)tv.tv_usec) * 0.000001;
11 }