#programista15k #java
W zookeeper jest metoda Time.currentElapsedTime(), jej implementacja z tego co znalazłem to:
i w jej opisie mamy:
W zookeeper jest metoda Time.currentElapsedTime(), jej implementacja z tego co znalazłem to:
return System.nanoTime() / 1000000;
i w jej opisie mamy:
public static long currentElapsedTime()
Returns time in milliseconds as does System.currentTimeMillis(), but uses elapsed time from an arbitrary epoch more like System.nanoTime(). The difference is that if somebody changes the system clock, Time.currentElapsedTime will change but nanoTime won't. On the other hand, all of ZK assumes that time is





























Czy to ten słynny angielski południowoafrykański? Czy może lektorem jest po prostu obcokrajowiec?
#angielski #pytaniedoeksperta