Apache Tomcat 7.0.28

org.apache.tomcat.jni
Class Time

java.lang.Object
  extended by org.apache.tomcat.jni.Time

public class Time
extends Object

Time

Version:
$Id: Time.java 939309 2010-04-29 13:54:26Z kkolinko $
Author:
Mladen Turk

Field Summary
static long APR_MSEC_PER_USEC
          number of milliseconds per microsecond
static long APR_USEC_PER_SEC
          number of microseconds per second
 
Constructor Summary
Time()
           
 
Method Summary
static 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 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

APR_USEC_PER_SEC

public static final long APR_USEC_PER_SEC
number of microseconds per second

See Also:
Constant Field Values

APR_MSEC_PER_USEC

public static final long APR_MSEC_PER_USEC
number of milliseconds per microsecond

See Also:
Constant Field Values
Constructor Detail

Time

public Time()
Method Detail

sec

public static long sec(long t)
Returns:
apr_time_t as a second

msec

public static long msec(long t)
Returns:
apr_time_t as a msec

now

public static long now()
number of microseconds since 00:00:00 January 1, 1970 UTC

Returns:
the current time

rfc822

public static String rfc822(long t)
Formats dates in the RFC822 format in an efficient manner.

Parameters:
t - the time to convert

ctime

public static String ctime(long t)
Formats dates in the ctime() format in an efficient manner. Unlike ANSI/ISO C ctime(), apr_ctime() does not include a \n at the end of the string.

Parameters:
t - the time to convert

sleep

public static void sleep(long t)
Sleep for the specified number of micro-seconds.
Warning : May sleep for longer than the specified time.

Parameters:
t - desired amount of time to sleep.

Apache Tomcat 7.0.28

Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.