~ubuntu-branches/ubuntu/trusty/nwchem/trusty-proposed

« back to all changes in this revision

Viewing changes to src/tools/ga-5-2/armci/examples/benchmarks/lu/armci_nonblocking/timing.c

  • Committer: Package Import Robot
  • Author(s): Michael Banck, Daniel Leidert, Andreas Tille, Michael Banck
  • Date: 2013-07-04 12:14:55 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20130704121455-5tvsx2qabor3nrui
Tags: 6.3-1
* New upstream release.
* Fixes anisotropic properties (Closes: #696361).
* New features include:
  + Multi-reference coupled cluster (MRCC) approaches
  + Hybrid DFT calculations with short-range HF 
  + New density-functionals including Minnesota (M08, M11) and HSE hybrid
    functionals
  + X-ray absorption spectroscopy (XAS) with TDDFT
  + Analytical gradients for the COSMO solvation model
  + Transition densities from TDDFT 
  + DFT+U and Electron-Transfer (ET) methods for plane wave calculations
  + Exploitation of space group symmetry in plane wave geometry optimizations
  + Local density of states (LDOS) collective variable added to Metadynamics
  + Various new XC functionals added for plane wave calculations, including
    hybrid and range-corrected ones
  + Electric field gradients with relativistic corrections 
  + Nudged Elastic Band optimization method
  + Updated basis sets and ECPs 

[ Daniel Leidert ]
* debian/watch: Fixed.

[ Andreas Tille ]
* debian/upstream: References

[ Michael Banck ]
* debian/upstream (Name): New field.
* debian/patches/02_makefile_flags.patch: Refreshed.
* debian/patches/06_statfs_kfreebsd.patch: Likewise.
* debian/patches/07_ga_target_force_linux.patch: Likewise.
* debian/patches/05_avoid_inline_assembler.patch: Removed, no longer needed.
* debian/patches/09_backported_6.1.1_fixes.patch: Likewise.
* debian/control (Build-Depends): Added gfortran-4.7 and gcc-4.7.
* debian/patches/10_force_gcc-4.7.patch: New patch, explicitly sets
  gfortran-4.7 and gcc-4.7, fixes test suite hang with gcc-4.8 (Closes:
  #701328, #713262).
* debian/testsuite: Added tests for COSMO analytical gradients and MRCC.
* debian/rules (MRCC_METHODS): New variable, required to enable MRCC methods.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#if HAVE_CONFIG_H
 
2
#   include "config.h"
 
3
#endif
 
4
 
 
5
/** @file
 
6
 * Copyright (c) 1995 by PDCL Corporation.  All Rights Reserved.
 
7
 *
 
8
 * NAME
 
9
 *   timing.c
 
10
 * PURPOSE
 
11
 *   Timing routines for calculating the execution time:
 
12
 *     void start_timer(void);  Set the timer.
 
13
 *     double elapsed_time(void);  Return the timing elapsed since
 
14
 *                                 the timer has been set.
 
15
 * NOTES
 
16
 *   Jialin Ju - Oct 16, 1995 Created.
 
17
 */
 
18
 
 
19
#if HAVE_SYS_TYPES_H
 
20
#   include <sys/types.h>
 
21
#endif
 
22
#if HAVE_SYS_ERRNO_H
 
23
#   include <sys/errno.h>
 
24
#endif
 
25
#if HAVE_SYS_TIME_H
 
26
#   include <sys/time.h>
 
27
#endif
 
28
 
 
29
/** Timing routines that use standard Unix gettingofday() */
 
30
static struct timezone tz;
 
31
static struct timeval start_time, finish_time;
 
32
 
 
33
/** Start measuring a time delay */
 
34
void start_timer(void)
 
35
{
 
36
    gettimeofday( &start_time, &tz);
 
37
}
 
38
 
 
39
/** Retunrn elapsed time in milliseconds */
 
40
double elapsed_time(void)
 
41
{
 
42
    gettimeofday( &finish_time, &tz);
 
43
    return(1000.0*(finish_time.tv_sec - start_time.tv_sec) +
 
44
           (finish_time.tv_usec - start_time.tv_usec)/1000.0 );
 
45
}
 
46
 
 
47
/** Return the stopping time in milliseconds */
 
48
double stop_time(void)
 
49
{
 
50
    gettimeofday( &finish_time, &tz);
 
51
    return(1000.0*finish_time.tv_sec + finish_time.tv_usec/1000.0);
 
52
}