|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.vattp.security.Native
A class to hold all the miscellaneous system-dependent utilities Microcosm might need.
Field Summary | |
private static boolean |
isLinked
|
private static java.text.DecimalFormat |
myDecimalFormat
|
Constructor Summary | |
(package private) |
Native()
|
Method Summary | |
static long |
deltaTimerMSec(long start)
|
static long |
deltaTimerMSec(long start,
long end)
|
static long |
deltaTimerSec(long start)
|
static long |
deltaTimerSec(long start,
long end)
|
static long |
deltaTimerUSec(long start)
|
static long |
deltaTimerUSec(long start,
long end)
|
private static int |
flushWorkingSet()
Set the working set of this process to 0. |
static String |
format(long time)
Return a long in a preformatted way, suitable for sorting. |
static String |
formatNow()
Return the time in a preformatted way, suitable for sorting. |
private static Object |
fromWeakCell(int weakcell)
|
static int |
getPhysicalMemorySize()
|
private static int |
getPhysicalMemorySizeNative()
|
private static void |
initializeTimer()
Initialize the high-res timer. |
private static long |
queryPerformanceCounter()
Get the current value of the Pentium Performance counter. |
private static long |
queryTimer()
Get the current value of the high-res timer in microseconds. |
private static int |
toWeakCell(Object obj)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static boolean isLinked
private static final java.text.DecimalFormat myDecimalFormat
Constructor Detail |
Native()
Method Detail |
public static long deltaTimerMSec(long start)
public static long deltaTimerMSec(long start, long end)
public static long deltaTimerSec(long start)
public static long deltaTimerSec(long start, long end)
public static long deltaTimerUSec(long start)
public static long deltaTimerUSec(long start, long end)
private static int flushWorkingSet()
public static String format(long time)
public static String formatNow()
private static Object fromWeakCell(int weakcell)
public static int getPhysicalMemorySize()
private static int getPhysicalMemorySizeNative()
private static void initializeTimer()
private static long queryPerformanceCounter()
private static long queryTimer()
private static int toWeakCell(Object obj)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |