de.jstacs.utils
Class UserTime

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

public class UserTime
extends Time

This is an implementation of Time that uses a 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

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 de.jstacs.utils.Time
getTimeInstance
 
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