NCEPLIBS-w3emc 2.12.0
|
Make a system call to return various useful parameters. More...
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/times.h>
#include <sys/utsname.h>
Go to the source code of this file.
Functions | |
int | bucket (int lng) |
void | cputim (double *usr, double *sys) |
void | elapse (double *timer) |
void | end_timer (struct time_data *time) |
void | print_timing (char *string, struct time_data *time) |
void | resource () |
void | start_ () |
void | start_timer (struct time_data *time) |
void | summary_ (int *returnVal) |
Make a system call to return various useful parameters.
This code will make a system call to return various useful parameters. When subroutine summary() is called, a list of system resource statistics is printed to stdout.
Users need to place a call to start() at the beginning of the section of code to be "measured" and a call to summary() at the end.
Use as follows:
Definition in file summary.c.
void cputim | ( | double * | usr, |
double * | sys | ||
) |
void elapse | ( | double * | timer | ) |
void end_timer | ( | struct time_data * | time | ) |
void print_timing | ( | char * | string, |
struct time_data * | time | ||
) |
void start_timer | ( | struct time_data * | time | ) |
void summary_ | ( | int * | returnVal | ) |