hotspot/src/share/vm/utilities/globalDefinitions.hpp
changeset 11251 e29da6b5622b
parent 10739 91935236600e
child 11480 1bf714e8adb4
equal deleted inserted replaced
11250:ef1ab0772513 11251:e29da6b5622b
   172 // example from seconds to milliseconds and microseconds
   172 // example from seconds to milliseconds and microseconds
   173 
   173 
   174 const int MILLIUNITS    = 1000;         // milli units per base unit
   174 const int MILLIUNITS    = 1000;         // milli units per base unit
   175 const int MICROUNITS    = 1000000;      // micro units per base unit
   175 const int MICROUNITS    = 1000000;      // micro units per base unit
   176 const int NANOUNITS     = 1000000000;   // nano units per base unit
   176 const int NANOUNITS     = 1000000000;   // nano units per base unit
       
   177 
       
   178 const jlong NANOSECS_PER_SEC      = CONST64(1000000000);
       
   179 const jint  NANOSECS_PER_MILLISEC = 1000000;
   177 
   180 
   178 inline const char* proper_unit_for_byte_size(size_t s) {
   181 inline const char* proper_unit_for_byte_size(size_t s) {
   179   if (s >= 10*M) {
   182   if (s >= 10*M) {
   180     return "M";
   183     return "M";
   181   } else if (s >= 10*K) {
   184   } else if (s >= 10*K) {