#include <SimData/Date.h>#include <ctime>#include <sys/time.h>#include <unistd.h>Defines | |
| #define | SEC2RAD 7.272205216643039903848712e-5L |
| #define | EPOCH 2451545.0e+0L |
| #define | DAYSEC 86400.0e+0L |
| #define | CENDAY 36525.0e+0L |
| #define | PI 3.141592653e+0L |
| #define | COEFF0 24110.54841e+0L |
| #define | COEFF1 8640184.812866e+0L |
| #define | COEFF2 0.093104e+0L |
| #define | COEFF3 -6.2e-6L |
Functions | |
| void | tstart (void) |
| Start the timer. | |
| void | tend (void) |
| Stop the timer. | |
| double | tval () |
| Get the time interval (in seconds) between last calls to tstart() and tend(). | |
| timing_t | get_realtime () |
| Return the current time in seconds. | |
Variables | |
| NAMESPACE_SIMDATA struct timeval _tstart | _tend |
| timezone | tz |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Return the current time in seconds. The offset is platform dependent, so do not use this value for absolute time. |
|
|
Stop the timer.
|
|
|
Start the timer.
|
|
|
Get the time interval (in seconds) between last calls to tstart() and tend(). The precision should be about 1-2 ms on most platforms. |
|
|
|
|
|
|
|
SimData version pre-0.4.0. For more information on SimData, visit the SimData Homepage. Generated on Tue Oct 14 12:06:39 2003, using Doxygen 1.2.18. |