Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.netlib.util
Class Second

    java.lang.Object
      org.netlib.util.Second

    public class Second

extends java.lang.Object

Implementation of Fortran SECOND intrinsic function.

This file is part of the Fortran-to-Java (f2j) system, developed at the University of Tennessee.

This class implements the Fortran 77 SECOND intrinsic. SECOND is supposed to provide the CPU time for the process since the start of execution. Currently, Java doesn't have a similar method, so we use this cheesy simulation:

- f2j inserts a call at the beginning of the program to record the start time.
- on the first call, record the current time.
- on subsequent calls, return the difference between the current call time and the starting time.

Essentially, this version of etime returns the wall-clock time elapsed since the beginning of execution.

Author:
  Keith Seymour (seymour@cs.utk.edu)

Constructor Summary
`Second()`

Method Summary
`static float` | `second()` Supposed to return the elapsed CPU time since the beginning of program execution.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### Second

    public Second()

Method Detail

### second

    public static float second()

  Supposed to return the elapsed CPU time since the beginning of program execution. Currently implemented as wall clock time.

  Returns:
    the elapsed time.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD