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

## de.jstacs.utils
Class UserTime

    java.lang.Object
      de.jstacs.utils.Time
          de.jstacs.utils.UserTime

    public class UserTime

extends Time

This is an implementation of Time that uses an native method.
If you like to use this class you must set the VM option `-Djava.library.path` to the directory where the native library resides.
The native library is

- `UserTime.dll` for Windows,
- `libUserTime.so` for Linux,
- `libUserTime.jnilib` for Mac OS X.

If you want to compile the native library for your system, compile `de_jstacs_utils_UserTime.c` as a dynamic library including the path to `jni.h` on your system (`-I/path/to/directory_containing_jni.h`).

Author:
  Jens Keilwagen

Constructor Summary
`UserTime()`

Method Summary
`double` | `getElapsedTime()` Returns the elapsed time since invoking the constructor.
`void` | `reset()` Restarts the time stopping.

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

Constructor Detail

### UserTime

    public UserTime()

Method Detail

### getElapsedTime

    public double getElapsedTime()

  Description copied from class: `Time`
  Returns the elapsed time since invoking the constructor.

  Specified by:
    `getElapsedTime` in class `Time`
  Returns:
    the elapsed time in seconds

### reset

    public void reset()

  Description copied from class: `Time`
  Restarts the time stopping.

  Specified by:
    `reset` in class `Time`

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