001    package railo.runtime.timer;
002    
003    
004    /**
005     * a global stop watch, only one for process
006     */
007    public final class GlobalWatch extends Stopwatch {
008            
009            private static GlobalWatch gw;
010            
011            private GlobalWatch(){}
012            
013            /**
014             * @return returns allways the same Instance of the GlobalWatch (Singelton)
015             */
016            public static GlobalWatch newInstance() {
017                    if(gw==null)gw=new GlobalWatch();
018                    return gw;
019            }
020    
021    }