java 8 – writing a timer

Main menu:

Topics

Recent Posts

Feeds

RSS Feed RSS - Posts

January 2018
M T W T F S S
« Dec    
1234567
891011121314
15161718192021
22232425262728
293031  

Past Posts

Java/Java EE

JDBC

Other

Archive for the tag "timer"

java 8 – writing a timer

August 9th, 2014 by Jeanne Boyarsky

A member at CodeRanch asked a question that prompted me to write a qucik program to determine which of two String operations were faster. This is the first time my instinct was to use Java 8 functionality to do it. The interesting features: Uses Instant and Duration instead of System.currentTimeMillis(). Uses functional programming to pass […]