Where Online Learning is simpler!
The C and C++ Include Header Files
/usr/include/apache2/modperl_time.h
$ cat -n /usr/include/apache2/modperl_time.h 1 /* Licensed to the Apache Software Foundation (ASF) under one or more 2 * contributor license agreements. See the NOTICE file distributed with 3 * this work for additional information regarding copyright ownership. 4 * The ASF licenses this file to You under the Apache License, Version 2.0 5 * (the "License"); you may not use this file except in compliance with 6 * the License. You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #ifndef MODPERL_TIME_H 18 #define MODPERL_TIME_H 19 20 #ifdef HZ 21 # define MP_HZ HZ 22 #else 23 # define MP_HZ 100 24 #endif 25 26 #ifdef MP_TRACE 27 #define dMP_TIMES \ 28 struct tms start_time; \ 29 struct tms end_time 30 #else 31 #define dMP_TIMES dNOOP 32 #endif 33 34 #define MP_START_TIMES() \ 35 MP_TRACE_t_do((void)PerlProc_times(&start_time)) 36 37 #define MP_END_TIMES() \ 38 MP_TRACE_t_do((void)PerlProc_times(&end_time)) 39 40 #define MP_PRINT_TIMES(label) \ 41 MP_TRACE_t_do({ \ 42 double utime = \ 43 (double)(end_time.tms_utime - start_time.tms_utime)/MP_HZ; \ 44 double stime = \ 45 (double)(end_time.tms_stime - start_time.tms_stime)/MP_HZ; \ 46 if (utime || stime) { \ 47 MP_TRACE_t(MP_FUNC, "%s %5.2f user %5.2f sys", \ 48 label, utime, stime); \ 49 } \ 50 }) 51 52 #endif /* MODPERL_TIME_H */ 53 54 /* 55 * Local Variables: 56 * c-basic-offset: 4 57 * indent-tabs-mode: nil 58 * End: 59 */
Contact us
|
About us
|
Term of use
|
Copyright © 2000-2025 MyWebUniversity.com ™