/[MITgcm]/MITgcm/eesupp/src/tim.c
ViewVC logotype

Diff of /MITgcm/eesupp/src/tim.c

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1 by cnh, Tue Sep 29 19:25:49 1998 UTC revision 1.2 by cnh, Tue Sep 29 21:22:33 1998 UTC
# Line 0  Line 1 
1    #include <mpi.h>
2    #include <stdio.h>
3    #include <stdlib.h>
4    #include <unistd.h>
5    #include <assert.h>
6    #include <sys/time.h>
7    void cloc_( double *curtim )
8    {
9     struct timespec tv1;
10     getclock(TIMEOFDAY, &tv1);
11     *curtim =  (double)((tv1.tv_nsec)+(tv1.tv_sec)*1.E9);
12     *curtim = *curtim/1E9;
13    }
14    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.22