From 02f67cbd739b45e557b1bafcf0c595f079c66a00 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Tue, 22 Mar 2005 05:11:16 +0000 Subject: [PATCH] remove getThreadCpuDiff method, lives in CpuTimer class now --- .../java/src/net/hyperic/sigar/Sigar.java | 26 ------------------- 1 file changed, 26 deletions(-) diff --git a/bindings/java/src/net/hyperic/sigar/Sigar.java b/bindings/java/src/net/hyperic/sigar/Sigar.java index dd53caef..6cf3bb39 100644 --- a/bindings/java/src/net/hyperic/sigar/Sigar.java +++ b/bindings/java/src/net/hyperic/sigar/Sigar.java @@ -489,32 +489,6 @@ public class Sigar implements SigarProxy { return ThreadCpu.fetch(this, 0); } - private ThreadCpu diff = null; - - /** - * Get cpu time since the last time cpu.gather was called - * for the calling thread. - */ - public ThreadCpu getThreadCpuDiff(ThreadCpu cpu) - throws SigarException { - - long startTotal = cpu.total; - long startUser = cpu.user; - long startSys = cpu.sys; - - if (this.diff == null) { - this.diff = new ThreadCpu(); - } - - cpu.gather(this, 0); - - this.diff.total = cpu.total - startTotal; - this.diff.user = cpu.user - startUser; - this.diff.sys = cpu.sys - startSys; - - return this.diff; - } - /** * Get list of file systems. * @exception SigarException on failure.