/** * Stop a timer of the given string name for all todos and the current * thread. If no such timer exists, -1 will be returned. Otherwise the * return value is the CPU time that was measured. * * @param timerName * the name of the timer * @return CPU time if timer existed and was running, and -1 otherwise */ public static long stopNamedTimer(String timerName) { return stopNamedTimer(timerName, RECORD_ALL, Thread.currentThread() .getId()); }
/** * Stop a timer of the given string name for the current thread. If no such * timer exists, -1 will be returned. Otherwise the return value is the CPU * time that was measured. * * @param timerName * the name of the timer * @param todoFlags * @return CPU time if timer existed and was running, and -1 otherwise */ public static long stopNamedTimer(String timerName, int todoFlags) { return stopNamedTimer(timerName, todoFlags, Thread.currentThread() .getId()); }
/** * Stop a timer of the given string name for the current thread. If no such * timer exists, -1 will be returned. Otherwise the return value is the CPU * time that was measured. * * @param timerName * the name of the timer * @param todoFlags * @return CPU time if timer existed and was running, and -1 otherwise */ public static long stopNamedTimer(String timerName, int todoFlags) { return stopNamedTimer(timerName, todoFlags, Thread.currentThread() .getId()); }
/** * Stop a timer of the given string name for all todos and the current * thread. If no such timer exists, -1 will be returned. Otherwise the * return value is the CPU time that was measured. * * @param timerName * the name of the timer * @return CPU time if timer existed and was running, and -1 otherwise */ public static long stopNamedTimer(String timerName) { return stopNamedTimer(timerName, RECORD_ALL, Thread.currentThread() .getId()); }
/** * Stop a timer of the given string name for all todos and the current * thread. If no such timer exists, -1 will be returned. Otherwise the * return value is the CPU time that was measured. * * @param timerName * the name of the timer * @return CPU time if timer existed and was running, and -1 otherwise */ public static long stopNamedTimer(String timerName) { return stopNamedTimer(timerName, RECORD_ALL, Thread.currentThread() .getId()); }
/** * Stop a timer of the given string name for the current thread. If no such * timer exists, -1 will be returned. Otherwise the return value is the CPU * time that was measured. * * @param timerName * the name of the timer * @param todoFlags * @return CPU time if timer existed and was running, and -1 otherwise */ public static long stopNamedTimer(String timerName, int todoFlags) { return stopNamedTimer(timerName, todoFlags, Thread.currentThread() .getId()); }
/** * Stop a timer of the given string name for all todos and the current * thread. If no such timer exists, -1 will be returned. Otherwise the * return value is the CPU time that was measured. * * @param timerName * the name of the timer * @return CPU time if timer existed and was running, and -1 otherwise */ public static long stopNamedTimer(String timerName) { return stopNamedTimer(timerName, RECORD_ALL, Thread.currentThread() .getId()); }
/** * Stop a timer of the given string name for the current thread. If no such * timer exists, -1 will be returned. Otherwise the return value is the CPU * time that was measured. * * @param timerName * the name of the timer * @param todoFlags * @return CPU time if timer existed and was running, and -1 otherwise */ public static long stopNamedTimer(String timerName, int todoFlags) { return stopNamedTimer(timerName, todoFlags, Thread.currentThread() .getId()); }