Created
          December 12, 2012 09:27 
        
      - 
      
- 
        Save chmike/4266372 to your computer and use it in GitHub Desktop. 
Revisions
- 
        chmike created this gist Dec 12, 2012 .There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ #include <sys/time.h> // Return the current time as a double float in second units double getTimeAsDouble() { struct timeval t; ::gettimeofday( &t, NULL ); return double(t.tv_sec) + double(t.tv_usec)/1000000.0; }