blob: f33b708b0515429bd40ac002515d16036c689ab2 [file] [log] [blame]
#pragma version(1)
#pragma rs java_package_name(android.renderscriptgraphics.cts)
static int64_t g_time;
static void start(void) {
g_time = rsUptimeMillis();
}
static float end(void) {
int64_t t = rsUptimeMillis() - g_time;
return ((float)t) / 1000.f;
}
#define _RS_ASSERT(b) \
do { \
if (!(b)) { \
failed = true; \
rsDebug(#b " FAILED", 0); \
} \
\
} while (0)
/* These constants must match those in UnitTest.java */
static const int RS_MSG_TEST_PASSED = 100;
static const int RS_MSG_TEST_FAILED = 101;