Package | Description |
---|---|
org.tinylog.runtime |
Encapsulated functionality that depends on the VM runtime.
|
Modifier and Type | Class | Description |
---|---|---|
class |
LegacyTimestamp |
Legacy timestamp that based on a
Date with millisecond precision. |
class |
PreciseTimestamp |
Precise timestamp that based on an
Instant with nanosecond precision. |
Modifier and Type | Method | Description |
---|---|---|
Timestamp |
LegacyJavaRuntime.createTimestamp() |
|
static Timestamp |
RuntimeProvider.createTimestamp() |
Creates a timestamp with the current date and time.
|
Timestamp |
LegacyJavaRuntime.getStartTime() |
|
static Timestamp |
RuntimeProvider.getStartTime() |
Gets the start time of the Java virtual machine or tinylog.
|
Modifier and Type | Method | Description |
---|---|---|
long |
LegacyTimestamp.calcDifferenceInNanoseconds(Timestamp other) |
|
long |
PreciseTimestamp.calcDifferenceInNanoseconds(Timestamp other) |
|
long |
Timestamp.calcDifferenceInNanoseconds(Timestamp other) |
Gets the difference to the passed timestamps in nanoseconds.
|
java.lang.String |
LegacyTimestampFormatter.format(Timestamp timestamp) |
|
java.lang.String |
PreciseTimestampFormatter.format(Timestamp timestamp) |
|
java.lang.String |
TimestampFormatter.format(Timestamp timestamp) |
Formats a timestamp.
|
Copyright © 2022. All rights reserved.