Examples of cstime()


Examples of jnr.posix.Times.cstime()

        return RubyStruct.newStruct(runtime.getTmsStruct(),
                new IRubyObject[] {
                        runtime.newFloat((double) tms.utime() / (double) hz),
                        runtime.newFloat((double) tms.stime() / (double) hz),
                        runtime.newFloat((double) tms.cutime() / (double) hz),
                        runtime.newFloat((double) tms.cstime() / (double) hz)
                },
                Block.NULL_BLOCK);
    }

    @Deprecated
View Full Code Here

Examples of jnr.posix.Times.cstime()

            }
        } else {
            utime = (double)tms.utime();
            stime = (double)tms.stime();
            cutime = (double)tms.cutime();
            cstime = (double)tms.cstime();
        }

        long hz = runtime.getPosix().sysconf(Sysconf._SC_CLK_TCK);
        if (hz == -1) {
            hz = 60; //https://github.com/ruby/ruby/blob/trunk/process.c#L6616
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.