public class XCode extends Object
| 构造器和说明 |
|---|
XCode() |
| 限定符和类型 | 方法和说明 |
|---|---|
static int |
attach(int delta) |
static int |
dettach(int delta) |
static void |
java2Unicode(String fileName,
String outputFilePath)
covert java source code to unicode code
|
static long |
run(int level,
Runnable runnable)
run code and return time of code running
|
static long |
run(Runnable runnable)
run code and return time of code running
|
static Thread |
runAsync(Runnable runnable) |
static long |
runMS(int level,
Runnable runnable,
XTime.Callback... cs)
run code and return milliseconds
|
static long |
runMS(Runnable runnable,
XTime.Callback... cs)
run code and return milliseconds
|
static long |
runNS(int level,
Runnable runnable,
XTime.Callback... cs)
run code and return nanoseconds
|
static long |
runNS(Runnable runnable,
XTime.Callback... cs)
run code and return nanoseconds
|
static long |
runS(int level,
Runnable runnable,
XTime.Callback... cs)
run code and return seconds
|
static long |
runS(Runnable runnable,
XTime.Callback... cs)
run code and return seconds
|
static void |
unicode2Java(String fileName,
String outputFilePath)
covert unicode code to java source code
|
public static int attach(int delta)
public static int dettach(int delta)
public static long run(Runnable runnable)
runnable - public static long runNS(Runnable runnable, XTime.Callback... cs)
runnable - cs - public static long runMS(Runnable runnable, XTime.Callback... cs)
runnable - cs - public static long runS(Runnable runnable, XTime.Callback... cs)
runnable - cs - public static long run(int level,
Runnable runnable)
runnable - public static long runNS(int level,
Runnable runnable,
XTime.Callback... cs)
runnable - cs - public static long runMS(int level,
Runnable runnable,
XTime.Callback... cs)
runnable - cs - public static long runS(int level,
Runnable runnable,
XTime.Callback... cs)
runnable - cs - public static void java2Unicode(String fileName, String outputFilePath) throws IOException
outputFilePath - IOExceptionpublic static void unicode2Java(String fileName, String outputFilePath) throws IOException
outputFilePath - IOExceptionCopyright © 2020. All Rights Reserved.