java-romp / jromp

Java Runtime implementation of OpenMP.
https://java-romp.github.io/jromp/
MIT License
5 stars 0 forks source link

Add function to work with wall clock time #31

Closed scastd closed 1 month ago

scastd commented 1 month ago

Describe the feature

In OpenMP, there is a function to get wall clock time in seconds: omp_get_wtime.

A new function could be created that calculates the wall clock times using System.nanoTime(), because it is more precise than System.currentTimeMillis() (StackOverflow reference).

[!NOTE] See [javadoc](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/System.html#currentTimeMillis()) for more details about these two functions.

Additional information

Final checks