hotspot/src/os/linux/vm/os_linux.cpp
changeset 1374 4c24294029a9
parent 388 bcc631c5bbec
child 1380 c6ace647ca84
equal deleted inserted replaced
615:570062d730b2 1374:4c24294029a9
  1257   return jlong(time.tv_sec) * 1000 * 1000 + jlong(time.tv_usec) - initial_time_count;
  1257   return jlong(time.tv_sec) * 1000 * 1000 + jlong(time.tv_usec) - initial_time_count;
  1258 }
  1258 }
  1259 
  1259 
  1260 jlong os::elapsed_frequency() {
  1260 jlong os::elapsed_frequency() {
  1261   return (1000 * 1000);
  1261   return (1000 * 1000);
       
  1262 }
       
  1263 
       
  1264 // For now, we say that linux does not support vtime.  I have no idea
       
  1265 // whether it can actually be made to (DLD, 9/13/05).
       
  1266 
       
  1267 bool os::supports_vtime() { return false; }
       
  1268 bool os::enable_vtime()   { return false; }
       
  1269 bool os::vtime_enabled()  { return false; }
       
  1270 double os::elapsedVTime() {
       
  1271   // better than nothing, but not much
       
  1272   return elapsedTime();
  1262 }
  1273 }
  1263 
  1274 
  1264 jlong os::javaTimeMillis() {
  1275 jlong os::javaTimeMillis() {
  1265   timeval time;
  1276   timeval time;
  1266   int status = gettimeofday(&time, NULL);
  1277   int status = gettimeofday(&time, NULL);