We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
OSGL tool provides expressive way to access system functions.
// old way long ts = System.currentTimeMillis(); // new way long ts = _.ms(); // old way long ns = System.nanoTime(); // new way long ns = _.ns(); long ns = _.ts(); // old way String versionStr = System.getProperty("java.specification.version"); int pos = versionStr.lastIndexOf('.'); int version = Integer.parseInt(versionStr.substring(pos + 1)); // new way int version = _.JAVA_VERSION
There was an error while loading. Please reload this page.