public class Util extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getComputerIdentifier()
Generates a Computer Identifier, which may be part of a strategy to
construct a licence key.
|
static String |
identifyVM()
The function attempts to identify which Virtual Machine (VM) based on
common VM signatures in MAC address and computer model.
|
static void |
sleep(long ms)
Sleeps for the specified number of milliseconds.
|
static void |
sleepAfter(long startTime,
long ms)
Sleeps for the specified number of milliseconds after the given system
time in milliseconds.
|
public static void sleep(long ms)
ms - How long to sleeppublic static void sleepAfter(long startTime,
long ms)
startTime - System time in milliseconds to sleep afterms - How long after startTime to sleeppublic static String getComputerIdentifier()
public static String identifyVM()
Copyright © 2010–2019 oshi. All rights reserved.