SCM Repository
Annotation of /branches/pure-cfg/src/lib/common/util.c
Parent Directory
|
Revision Log
Revision 1276 - (view) (download) (as text)
1 : | jhr | 1276 | /*! \file util.c |
2 : | * | ||
3 : | * \author John Reppy | ||
4 : | * | ||
5 : | * \brief Miscellaneous utility functions. | ||
6 : | */ | ||
7 : | |||
8 : | /* | ||
9 : | * COPYRIGHT (c) 2011 The Diderot Project (http://diderot-language.cs.uchicago.edu) | ||
10 : | * All rights reserved. | ||
11 : | */ | ||
12 : | |||
13 : | #include <Diderot/diderot.h> | ||
14 : | #include <sys/time.h> | ||
15 : | |||
16 : | double GetTime () | ||
17 : | { | ||
18 : | struct timeval tv; | ||
19 : | |||
20 : | gettimeofday (&tv, 0); | ||
21 : | |||
22 : | return (double)tv.tv_sec + 0.000001 * (double)tv.tv_usec; | ||
23 : | } |
root@smlnj-gforge.cs.uchicago.edu | ViewVC Help |
Powered by ViewVC 1.0.0 |