device_boot_time 1.0.0+2 copy "device_boot_time: ^1.0.0+2" to clipboard
device_boot_time: ^1.0.0+2 copied to clipboard

A cross-platform Flutter plugin that retrieves the time elapsed since the system was last booted, in milliseconds.

device_boot_time #

A cross-platform Flutter plugin that retrieves the time elapsed since the system was last booted, in milliseconds.

Installation #

Add the dependency to your pubspec.yaml:

dependencies:
  device_boot_time: ^1.0.0+2

Usage #

import 'package:device_boot_time/device_boot_time.dart';

final DeviceBootTime _plugin = DeviceBootTime();

// Get the time since boot in milliseconds
final int bootTime = await _plugin.getDeviceBootTime();

The method returns an int representing the number of milliseconds that have elapsed since the system was last started. This value does not represent a Unix timestamp—it is a monotonic uptime counter.

Supported platforms: #

  • Android
  • iOS
  • OpenHarmony
1
likes
160
points
0
downloads

Publisher

unverified uploader

Weekly Downloads

A cross-platform Flutter plugin that retrieves the time elapsed since the system was last booted, in milliseconds.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on device_boot_time

Packages that implement device_boot_time