LCOV - code coverage report

Current view
top level - src/_impl/xplat - _time_stamp.dart
Test
lcov.info
Date
2026-11-07
Legend
Lines
hit
not hit
Branches
taken
not taken
# not executed
HitTotalCoverage
Lines81080.0%
Functions00-
Branches00-
Each row represents a line of source code
LineBranchHitsSource code
11extension type Timestamp._(int _microseconds) {
24 factory Timestamp.now() => Timestamp._(DateTime.now().microsecondsSinceEpoch);
3
42 static Timestamp? from(dynamic value) => (value is num)
52 ? Timestamp._(value.toInt())
61 : ((value is DateTime)
72 ? Timestamp._(value.microsecondsSinceEpoch)
8 : null);
9
102 int operator -(Timestamp other) => _microseconds - other._microseconds;
11
120 Duration elapsedSince(Timestamp other) =>
130 Duration(microseconds: this - other);
14
152 DateTime toDateTime() => DateTime.fromMicrosecondsSinceEpoch(_microseconds);
16}
Choose Features