Ignore:
Timestamp:
08/01/11 15:08:42 (13 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: No

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No?

Module(s): Module Names change impacts.

Description: Describe your changes here...

gettimeofday_sec() is defined in MathUtil?.h instead to define
in each class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/MathUtils.cpp

    r2186 r2258  
    4444#include <scimath/Mathematics/AutoDiff.h>
    4545
     46#include <ctime>
     47#include <sys/time.h>
    4648
    4749#include "MathUtils.h"
     
    287289    fend = -1;
    288290  }
    289 }
     291
     292}
     293
     294double mathutil::gettimeofday_sec()
     295{
     296  struct timeval tv ;
     297  gettimeofday( &tv, NULL ) ;
     298  return tv.tv_sec + (double)tv.tv_usec*1.0e-6 ;
     299}
Note: See TracChangeset for help on using the changeset viewer.