public class Time
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static long |
APR_MSEC_PER_USEC
number of milliseconds per microsecond
|
static long |
APR_USEC_PER_SEC
number of microseconds per second
|
Constructor and Description |
---|
Time() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
ctime(long t)
Formats dates in the ctime() format
in an efficient manner.
|
static long |
msec(long t) |
static long |
now()
number of microseconds since 00:00:00 January 1, 1970 UTC
|
static java.lang.String |
rfc822(long t)
Formats dates in the RFC822
format in an efficient manner.
|
static long |
sec(long t) |
static void |
sleep(long t)
Sleep for the specified number of micro-seconds.
|
public static final long APR_USEC_PER_SEC
public static final long APR_MSEC_PER_USEC
public static long sec(long t)
public static long msec(long t)
public static long now()
public static java.lang.String rfc822(long t)
t
- the time to convertpublic static java.lang.String ctime(long t)
t
- the time to convertpublic static void sleep(long t)
t
- desired amount of time to sleep.Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.