Home / Class/ SystemTicker Class — netty Architecture

SystemTicker Class — netty Architecture

Architecture documentation for the SystemTicker class in SystemTicker.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  275e28cf_9ba6_f4ca_29ac_c282caa660d8["SystemTicker"]
  453b645c_dedb_26be_8579_f9ad9b4084fe["SystemTicker.java"]
  275e28cf_9ba6_f4ca_29ac_c282caa660d8 -->|defined in| 453b645c_dedb_26be_8579_f9ad9b4084fe
  4b2cfabc_d006_ce3e_44ab_caa445d62683["initialNanoTime()"]
  275e28cf_9ba6_f4ca_29ac_c282caa660d8 -->|method| 4b2cfabc_d006_ce3e_44ab_caa445d62683
  a40f0c35_7936_394f_a780_fd8381c4474b["nanoTime()"]
  275e28cf_9ba6_f4ca_29ac_c282caa660d8 -->|method| a40f0c35_7936_394f_a780_fd8381c4474b
  9b614752_f990_8701_6f84_416edf4ebc3c["sleep()"]
  275e28cf_9ba6_f4ca_29ac_c282caa660d8 -->|method| 9b614752_f990_8701_6f84_416edf4ebc3c

Relationship Graph

Source Code

common/src/main/java/io/netty/util/concurrent/SystemTicker.java lines 21–40

final class SystemTicker implements Ticker {
    static final SystemTicker INSTANCE = new SystemTicker();
    private static final long START_TIME = System.nanoTime();

    @Override
    public long initialNanoTime() {
        return START_TIME;
    }

    @Override
    public long nanoTime() {
        return System.nanoTime() - START_TIME;
    }

    @Override
    public void sleep(long delay, TimeUnit unit) throws InterruptedException {
        Objects.requireNonNull(unit, "unit");
        unit.sleep(delay);
    }
}

Frequently Asked Questions

What is the SystemTicker class?
SystemTicker is a class in the netty codebase, defined in common/src/main/java/io/netty/util/concurrent/SystemTicker.java.
Where is SystemTicker defined?
SystemTicker is defined in common/src/main/java/io/netty/util/concurrent/SystemTicker.java at line 21.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free