java how to calculate time elapsed code example Example: calculate time java System.out.println(LocalTime.now());