TIL - 21.01.06

less than 1 minute read

Streaming API


Spring 시간 측정 - StopWatch

import org.springframework.util.StopWatch;

public void test() {
  StopWatch stopWatch = new StopWatch();
  stopWatch.start();

  // 로직...

  stopWatch.stop();
  System.out.println(stopWatch.prettyPrint());
}