Skip to content

janfrode/java-cputime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Compile the java coden:

	javac CPUtest.java

Generate the JNI headerfile:

	javah -jni CPUtest

Compiler the library (Have no idea how this should be done on non-unix
systems):

	cc -o libjnicputime.so -O -shared cputime.c 

Set the library search path to include where libjnicputime.so is located: 

	setenv LD_LIBRARY_PATH .

Run the program:

	java CPUtest

Or simply run "make" to build, and "make test" to run the code.

About

Calculate CPUtime of a Java function

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published