Here you can find the source of getSlowTimer()
public static Timer getSlowTimer()
//package com.java2s; //License from project: Apache License import java.util.Timer; public class Main { private static Timer timerslow = null; private static Object TIMER_LOCK = new Object(); public static Timer getSlowTimer() { synchronized (TIMER_LOCK) { if (timerslow == null) { timerslow = new Timer(); }//from ww w .j a v a2s . c o m return timerslow; } } }