source: trunk/MagicSoft/Simulation/Corsika/Mmcs614/timer.c@ 14809

Last change on this file since 14809 was 1444, checked in by blanch, 22 years ago
*** empty log message ***
File size: 1.2 KB
Line 
1/*CMZ : 18/10/99 17.26.37 by D. HECK IK3 FZK KARLSRUHE*/
2/*-- Author : D. HORN & M. Raabe, DESY 13/01/97*/
3/*====================================================================*/
4
5/* subroutine timer( iseco ) */
6
7/*--------------------------------------------------------------------*/
8/* c-routine to read out system time in sec. */
9/* To be used in combination with CORSIKA */
10/* for old g77 compiler (version <0.5.21, with gcc 2.7.2.3). */
11/* Not needed with newer g77 compilers. */
12/* To be compiled with g77 -funderscoring */
13/* This subroutine is called from AAMAIN and SEKDAT */
14/* Argument: */
15/* iseco = seconds since 00:00:00 GMT on Jan. 1th 1970 */
16/*--------------------------------------------------------------------*/
17
18#include <sys/types.h>
19#include <time.h>
20#include <sys/timeb.h>
21void timer_(long *UnixSysTime)
22{
23 int dummy;
24 struct timeb Time_Struct;
25 dummy=ftime(&Time_Struct);
26 *UnixSysTime=Time_Struct.time;
27}
Note: See TracBrowser for help on using the repository browser.