1#pragma version(1)
2#pragma rs java_package_name(android.rscpp.cts)
3
4static int64_t g_time;
5
6static inline void start(void) {
7    g_time = rsUptimeMillis();
8}
9
10static inline float end(void) {
11    int64_t t = rsUptimeMillis() - g_time;
12    return ((float)t) / 1000.f;
13}
14
15#define _RS_ASSERT(b) \
16do { \
17    if (!(b)) { \
18        failed = true; \
19        rsDebug(#b " FAILED", 0); \
20    } \
21\
22} while (0)
23
24/* These constants must match those in UnitTest.java */
25static const int RS_MSG_TEST_PASSED = 100;
26static const int RS_MSG_TEST_FAILED = 101;
27