aboutsummaryrefslogtreecommitdiff
path: root/tests/test_time.c
blob: 3ab4d3ee73f803947f7894c09961a79a1318bd12 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13

#include "../include/testing.h"
#include "../include/time.h"
#include "../include/types.h"

i32 test_time_diff() {
    Time start = Time_get();
    Time end = Time_get();

    Duration diff = Time_diff(end, start);
    t_assert_equal(diff.s, 0);

    return 0;
}