Package | Description |
---|---|
org.tinylog.runtime |
Encapsulated functionality that depends on the VM runtime.
|
Modifier and Type | Class and 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 and Description |
---|---|
static Timestamp |
RuntimeProvider.createTimestamp()
Creates a timestamp with the current date and time.
|
Timestamp |
LegacyJavaRuntime.createTimestamp() |
static Timestamp |
RuntimeProvider.getStartTime()
Gets the start time of the Java virtual machine or tinylog.
|
Timestamp |
LegacyJavaRuntime.getStartTime() |
Modifier and Type | Method and 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.
|
String |
LegacyTimestampFormatter.format(Timestamp timestamp) |
String |
TimestampFormatter.format(Timestamp timestamp)
Formats a timestamp.
|
String |
PreciseTimestampFormatter.format(Timestamp timestamp) |
Copyright © 2024. All rights reserved.