publicclass MicroTime { publicstaticvoid main(String[] args) throws Exception { // We count how many different KerberosTime values // can be acquired within one second.
KerberosTime t1 = KerberosTime.now();
KerberosTime last = t1; int count = 0; while (true) {
KerberosTime t2 = KerberosTime.now(); if (t2.getTime() - t1.getTime() > 1000) break; if (!last.equals(t2)) {
last = t2;
count++;
}
} // We believe a nice KerberosTime can at least tell the // difference of 100 musec. if (count < 10000) { thrownew Exception("What? only " + (1000000/count) + " musec precision?");
}
}
}
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.