Home | History | Annotate | Download | only in cts
      1 #pragma version(1)
      2 #pragma rs java_package_name(android.renderscriptgraphics.cts)
      3 
      4 static int64_t g_time;
      5 
      6 static void start(void) {
      7     g_time = rsUptimeMillis();
      8 }
      9 
     10 static float end(void) {
     11     int64_t t = rsUptimeMillis() - g_time;
     12     return ((float)t) / 1000.f;
     13 }
     14 
     15 #define _RS_ASSERT(b) \
     16 do { \
     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 */
     25 static const int RS_MSG_TEST_PASSED = 100;
     26 static const int RS_MSG_TEST_FAILED = 101;
     27 
     28