v / vlib / time / stopwatch_internal_test.v
10 lines · 9 sloc · 162 bytes · a01af79d05c4487ccca28f26ba6b265c04fc796c
Raw
1module time
2
3fn test_stopwatch_elapsed_uses_explicit_started_state() {
4 sw := StopWatch{
5 started: true
6 start: 0
7 end: 7
8 }
9 assert sw.elapsed() == 7
10}
11