return timerNsec;
JNIEXPORT jlong JNICALL Java_com_sun_j3d_utils_timer_J3DTimer_getNativeTimer  (JNIEnv *env, jclass clazz) {#ifdef SOLARIS  /*struct timespec tp;*/  /*clock_gettime( CLOCK_HIGHRES, &tp );*/  /*return (jlong)tp.tv_nsec + (jlong)tp.tv_sec*1000000000;*/  return (jlong)gethrtime();#endif#ifdef WIN32  LARGE_INTEGER time;  QueryPerformanceCounter( &time );  if (pcRes==-1)      pcRes = Java_com_sun_j3d_utils_timer_J3DTimer_getNativeTimerResolution(NULL, NULL );  return (jlong)time.QuadPart*pcRes;#endif#ifdef __linux__  struct timeval t;  gettimeofday(&t, 0);  return ((jlong)t.tv_sec) * 1000000000LL + ((jlong)t.tv_usec) * 1000;#endif}