Measuring execution time in DartΒΆ
Ever wanted to measure how long a network request takes in Dart?
This is easily done by creating a helper function that calculates the difference between two dates. π
Then, you can wrap any asynchronous code block inside the function and reuse it as needed.
Very useful for benchmarking the execution time of your backend or database calls. π
Previous | Next |
---|---|
Find the Invalid Switch Expression π§ | Are global variables bad? |
Last update:
18 septembre 2023
Created: 18 septembre 2023
Created: 18 septembre 2023