Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e3215c4

Browse files
Add execution time measurement to main function in palindrome number solution
1 parent 03eed1a commit e3215c4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎leetcode/9.palindrome_number.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
import 'package:test/test.dart';
33

44
void main() {
5+
final stopwatch = Stopwatch()..start();
56
runTests();
7+
8+
stopwatch.stop();
9+
print('Function Execution Time : ${stopwatch.elapsedMicroseconds} micro s');
610
}
711

812
class Solution {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /