📄 debug.clock.html
字号:
<DD>the output format in seconds, with fraction of msecs<P><DL><DT><B>See Also:</B><DD><A HREF="../../constant-values.html#weka.core.Debug.Clock.FORMAT_SECONDS">Constant Field Values</A></DL></DL><HR><A NAME="FORMAT_HHMMSS"><!-- --></A><H3>FORMAT_HHMMSS</H3><PRE>public static final int <B>FORMAT_HHMMSS</B></PRE><DL><DD>the output format in hours:minutes:seconds, with fraction of msecs<P><DL><DT><B>See Also:</B><DD><A HREF="../../constant-values.html#weka.core.Debug.Clock.FORMAT_HHMMSS">Constant Field Values</A></DL></DL><HR><A NAME="TAGS_FORMAT"><!-- --></A><H3>TAGS_FORMAT</H3><PRE>public static final <A HREF="../../weka/core/Tag.html" title="class in weka.core">Tag</A>[] <B>TAGS_FORMAT</B></PRE><DL><DD>the output formats<P><DL></DL></DL><HR><A NAME="m_OutputFormat"><!-- --></A><H3>m_OutputFormat</H3><PRE>public int <B>m_OutputFormat</B></PRE><DL><DD>the format of the output<P><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="Debug.Clock()"><!-- --></A><H3>Debug.Clock</H3><PRE>public <B>Debug.Clock</B>()</PRE><DL><DD>automatically starts the clock with FORMAT_SECONDS format<P><DL><DT><B>See Also:</B><DD><A HREF="../../weka/core/Debug.Clock.html#m_OutputFormat"><CODE>m_OutputFormat</CODE></A></DL></DL><HR><A NAME="Debug.Clock(int)"><!-- --></A><H3>Debug.Clock</H3><PRE>public <B>Debug.Clock</B>(int format)</PRE><DL><DD>automatically starts the clock with the given output format<P><DL><DT><B>Parameters:</B><DD><CODE>format</CODE> - the output format<DT><B>See Also:</B><DD><A HREF="../../weka/core/Debug.Clock.html#m_OutputFormat"><CODE>m_OutputFormat</CODE></A></DL></DL><HR><A NAME="Debug.Clock(boolean)"><!-- --></A><H3>Debug.Clock</H3><PRE>public <B>Debug.Clock</B>(boolean start)</PRE><DL><DD>starts the clock depending on <code>start</code> immediately with the FORMAT_SECONDS output format<P><DL><DT><B>Parameters:</B><DD><CODE>start</CODE> - whether to start the clock immediately<DT><B>See Also:</B><DD><A HREF="../../weka/core/Debug.Clock.html#m_OutputFormat"><CODE>m_OutputFormat</CODE></A></DL></DL><HR><A NAME="Debug.Clock(boolean, int)"><!-- --></A><H3>Debug.Clock</H3><PRE>public <B>Debug.Clock</B>(boolean start, int format)</PRE><DL><DD>starts the clock depending on <code>start</code> immediately<P><DL><DT><B>Parameters:</B><DD><CODE>start</CODE> - whether to start the clock immediately<DD><CODE>format</CODE> - the format<DT><B>See Also:</B><DD><A HREF="../../weka/core/Debug.Clock.html#m_OutputFormat"><CODE>m_OutputFormat</CODE></A></DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="isCpuTime()"><!-- --></A><H3>isCpuTime</H3><PRE>public boolean <B>isCpuTime</B>()</PRE><DL><DD>whether the measurement is based on the msecs returned from the System class or on the more accurate CPU time.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if the more accurate CPU time of the thread is used<DT><B>See Also:</B><DD><CODE>System.currentTimeMillis()</CODE>, <CODE>ThreadMXBean.isThreadCpuTimeEnabled()</CODE></DL></DD></DL><HR><A NAME="start()"><!-- --></A><H3>start</H3><PRE>public void <B>start</B>()</PRE><DL><DD>saves the current system time (or CPU time) in msec as start time<P><DD><DL></DL></DD><DD><DL><DT><B>See Also:</B><DD><A HREF="../../weka/core/Debug.Clock.html#m_Start"><CODE>m_Start</CODE></A></DL></DD></DL><HR><A NAME="stop()"><!-- --></A><H3>stop</H3><PRE>public void <B>stop</B>()</PRE><DL><DD>saves the current system (or CPU time) in msec as stop time<P><DD><DL></DL></DD><DD><DL><DT><B>See Also:</B><DD><A HREF="../../weka/core/Debug.Clock.html#m_Stop"><CODE>m_Stop</CODE></A></DL></DD></DL><HR><A NAME="getStart()"><!-- --></A><H3>getStart</H3><PRE>public long <B>getStart</B>()</PRE><DL><DD>returns the start time<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the start time</DL></DD></DL><HR><A NAME="getStop()"><!-- --></A><H3>getStop</H3><PRE>public long <B>getStop</B>()</PRE><DL><DD>returns the stop time or, if still running, the current time<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the stop time</DL></DD></DL><HR><A NAME="isRunning()"><!-- --></A><H3>isRunning</H3><PRE>public boolean <B>isRunning</B>()</PRE><DL><DD>whether the time is still being clocked<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if the time is still being clocked</DL></DD></DL><HR><A NAME="setOutputFormat(int)"><!-- --></A><H3>setOutputFormat</H3><PRE>public void <B>setOutputFormat</B>(int value)</PRE><DL><DD>sets the format of the output<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - the format of the output<DT><B>See Also:</B><DD><A HREF="../../weka/core/Debug.Clock.html#m_OutputFormat"><CODE>m_OutputFormat</CODE></A></DL></DD></DL><HR><A NAME="getOutputFormat()"><!-- --></A><H3>getOutputFormat</H3><PRE>public int <B>getOutputFormat</B>()</PRE><DL><DD>returns the output format<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the output format<DT><B>See Also:</B><DD><A HREF="../../weka/core/Debug.Clock.html#m_OutputFormat"><CODE>m_OutputFormat</CODE></A></DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD>returns the elapsed time, getStop() - getStart(), as string<P><DD><DL><DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the elapsed time as string<DT><B>See Also:</B><DD><A HREF="../../weka/core/Debug.Clock.html#getStart()"><CODE>getStart()</CODE></A>, <A HREF="../../weka/core/Debug.Clock.html#getStop()"><CODE>getStop()</CODE></A></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="http://www.cs.waikato.ac.nz/ml/weka/" target="_blank"><FONT CLASS="NavBarFont1"><B>Weka's home</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../weka/core/Debug.html" title="class in weka.core"><B>PREV CLASS</B></A> <A HREF="../../weka/core/Debug.DBO.html" title="class in weka.core"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../index.html?weka/core/Debug.Clock.html" target="_top"><B>FRAMES</B></A> <A HREF="Debug.Clock.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -