// getTime checks. // Note: there isn't really much to check independent from the implementation. So we check // a few details of the ART implementation. This may fail on other runtimes. long time1 = getTime(); long time2 = getTime();
// Under normal circumstances, time1 <= time2. if (time2 < time1) { thrownew RuntimeException("Time unexpectedly decreased: " + time1 + " vs " + time2);
}
long time3 = System.nanoTime(); long time4 = getTime();
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.