| 1 | /****************************************************************************/cxx . . $ `<file>/src/medit/chrono.h`/ |
| 2 | /* This file is part of FreeFEM. */ |
| 3 | /* */ |
| 4 | /* FreeFEM is free software: you can redistribute it and/or modify */ |
| 5 | /* it under the terms of the GNU Lesser General Public License as */ |
| 6 | /* published by the Free Software Foundation, either version 3 of */ |
| 7 | /* the License, or (at your option) any later version. */ |
| 8 | /* */ |
| 9 | /* FreeFEM is distributed in the hope that it will be useful, */ |
| 10 | /* but WITHOUT ANY WARRANTY; without even the implied warranty of */ |
| 11 | /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */ |
| 12 | /* GNU Lesser General Public License for more details. */ |
| 13 | /* */ |
| 14 | /* You should have received a copy of the GNU Lesser General Public License */ |
| 15 | /* along with FreeFEM. If not, see <http://www.gnu.org/licenses/>. */ |
| 16 | /****************************************************************************/ |
| 17 | /* SUMMARY : ... */ |
| 18 | /* LICENSE : LGPLv3 */ |
| 19 | /* ORG : LJLL Universite Pierre et Marie Curie, Paris, FRANCE */ |
| 20 | /* AUTHORS : Pascal Frey */ |
| 21 | /* E-MAIL : [email protected] */ |
| 22 | |
| 23 | #ifdef __cplusplus |
| 24 | extern "C" { |
| 25 | #endif |
| 26 | |
| 27 | #ifndef _CHRONO_H_ |
| 28 | #define _CHRONO_H_cxx . . $ `src/medit/chrono.h:28:9`! |
| 29 | |
| 30 | #include <time.h> |
| 31 | |
| 32 | #ifndef ON |
| 33 | #define RESETcxx . . $ `src/medit/chrono.h:33:9`! 0 |
| 34 | #define ONcxx . . $ `src/medit/chrono.h:34:9`! 1 |
| 35 | #define OFFcxx . . $ `src/medit/chrono.h:35:9`! 2 |
| 36 | #endif |
| 37 | |
| 38 | #define TIMEMAXcxx . . $ `src/medit/chrono.h:38:9`! 16 |
| 39 | #define MAXCLKcxx . . $ `src/medit/chrono.h:39:9`! (1073741823. / (double)CLOCKS_PER_SEC) |
| 40 | |
| 41 | typedef struct mytimecxx . . $ mytime# { |
| 42 | double ctimcxx . . $ mytime#ctim., dtimcxx . . $ mytime#dtim.; |
| 43 | time_tcxx . . $ time_t# ptimcxx . . $ mytime#ptim.; |
| 44 | short callcxx . . $ mytime#call.; |
| 45 | } mytimecxx . . $ mytime#; |
| 46 | |
| 47 | /* prototypes */ |
| 48 | void chronocxx . . $ chrono(cdd5fe5138575a7c).(int cmode, mytimecxx . . $ mytime# *ptt); |
| 49 | double gttimecxx . . $ gttime(287b6efb7671895b).(mytimecxx . . $ mytime# t); |
| 50 | void tminitcxx . . $ tminit(2f67d777201d01bf).(mytimecxx . . $ mytime# *t, int maxtim); |
| 51 | |
| 52 | #endif /* _CHRONO_H_ */ |
| 53 | |
| 54 | #ifdef __cplusplus |
| 55 | } |
| 56 | #endif |