diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..3c59f96 --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,12 @@ +#include + +#include "ruc/timer.h" + +int main(int argc, char* argv[]) +{ + ruc::Timer t; + + printf("%fms\n", t.elapsedNanoseconds() / 1000000.0); + + return 0; +} diff --git a/test/testthing.cpp b/test/testthing.cpp new file mode 100644 index 0000000..3e71310 --- /dev/null +++ b/test/testthing.cpp @@ -0,0 +1,17 @@ +/* + * Copyright (C) 2022 Riyyi + * + * SPDX-License-Identifier: MIT + */ + +#include "macro.h" +#include "testcase.h" +#include "testsuite.h" + +// ----------------------------------------- + +TEST_CASE(Thing) +{ + int a = 5; + EXPECT_EQ(a, 5); +}