La utilidad gettime es un programa en C utilizado por PROBE para realizar un seguimiento del tiempo transcurrido entre los diferentes reinicios del análisis. Debe compilar este programa y ubicarlo en el mismo directorio que los métodos de rellamada, es decir, el directorio al que señala la propiedad RT_basedir.
# This utility program, used by the probe method of the data service, tracks # the elapsed time in seconds from a known reference point (epoch point). It # must be compiled and placed in the same directory as the data service callback # methods (RT_basedir). #pragma ident “@(#)gettime.c 1.1 00/05/24 SMI” #include <stdio.h> #include <sys/types.h> #include <time.h> main() { printf(“%d\n”, time(0)); exit(0); } |