contains_value_and_time 1.0.1 copy "contains_value_and_time: ^1.0.1" to clipboard
contains_value_and_time: ^1.0.1 copied to clipboard

A Dart package that provides a function to check if a list contains a specified value and returns the index of the value along with the time taken to find it.

containsValueAndTime #

A Dart package that provides a function to check if a list contains a specified value and returns the index of the value along with the time taken to find it.

Features #

  • Efficient Timing: Uses Stopwatch for high-resolution timing of the search operation.
  • Simple API: A single function to get both the index and elapsed time in microseconds.

Installation #

Add this to your package's pubspec.yaml file:

dependencies:
  contains_value_and_time: ^1.0.0

Import it #

import 'package:contains_value_and_time/contains_value_and_time.dart';
0
likes
160
points
28
downloads

Publisher

unverified uploader

Weekly Downloads

A Dart package that provides a function to check if a list contains a specified value and returns the index of the value along with the time taken to find it.

Repository (GitHub)

Documentation

API reference

License

BSD-3-Clause (license)

More

Packages that depend on contains_value_and_time