177 |
177 |
178 const jlong NANOSECS_PER_SEC = CONST64(1000000000); |
178 const jlong NANOSECS_PER_SEC = CONST64(1000000000); |
179 const jint NANOSECS_PER_MILLISEC = 1000000; |
179 const jint NANOSECS_PER_MILLISEC = 1000000; |
180 |
180 |
181 inline const char* proper_unit_for_byte_size(size_t s) { |
181 inline const char* proper_unit_for_byte_size(size_t s) { |
|
182 #ifdef _LP64 |
|
183 if (s >= 10*G) { |
|
184 return "G"; |
|
185 } |
|
186 #endif |
182 if (s >= 10*M) { |
187 if (s >= 10*M) { |
183 return "M"; |
188 return "M"; |
184 } else if (s >= 10*K) { |
189 } else if (s >= 10*K) { |
185 return "K"; |
190 return "K"; |
186 } else { |
191 } else { |