1 /* 2 ~ Copyright 2006-2007 Nicolas De Loof. 3 ~ 4 ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 ~ you may not use this file except in compliance with the License. 6 ~ You may obtain a copy of the License at 7 ~ 8 ~ http://www.apache.org/licenses/LICENSE-2.0 9 ~ 10 ~ Unless required by applicable law or agreed to in writing, software 11 ~ distributed under the License is distributed on an "AS IS" BASIS, 12 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 ~ See the License for the specific language governing permissions and 14 ~ limitations under the License. 15 */ 16 package org.jmonit; 17 18 /** 19 * @deprecated use Execution 20 * @author <a href="mailto:nicolas.deloof@gmail.com">Nicolas De Loof</a> 21 */ 22 public class Probe 23 { 24 public static Probe start( Monitor monitor ) 25 { 26 return Stopwatch.start( monitor ); 27 } 28 29 public void cancel() 30 { 31 32 } 33 34 public long getElapsedTime() 35 { 36 return 0; 37 38 } 39 40 public void pause() 41 { 42 43 } 44 45 public void resume() 46 { 47 } 48 49 public void start() 50 { 51 } 52 53 public long stop( boolean canceled ) 54 { 55 return 0; 56 } 57 58 public long stop() 59 { 60 return 0; 61 } 62 63 }