类 Utils
java.lang.Object
com.github.myzhan.locust4j.utils.Utils
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static longGet the current timestamp in seconds.static Stringstatic Stringstatic StringgetSystemEnvWithDefault(String key, String defaultValue) Get environment variable by key, and return the default value if not found.static Stringstatic longnow()Get the current timestamp in millis.static longround(long value, int places)
-
构造器详细资料
-
Utils
public Utils()
-
-
方法详细资料
-
md5
-
getHostname
-
getNodeID
-
round
public static long round(long value, int places) -
now
public static long now()Get the current timestamp in millis.- 返回:
- current timestamp in millis
-
currentTimeInSeconds
public static long currentTimeInSeconds()Get the current timestamp in seconds.- 返回:
- current timestamp in seconds
-
getSystemEnvWithDefault
-