1
1
openmpi/ompi/mca/sharedfp/individual/sharedfp_individual_gettime.c
Edgar Gabriel 6e8522fec5 infuse life into the shared file pointer framework. For this:
- extend the framework API
 - remove the dummy component, not require anymore
 - add four components to perform the actual job.

This commit was SVN r28828.
2013-07-17 21:55:24 +00:00

30 строки
583 B
C

#include <sys/time.h>
#include <stdlib.h>
#include <time.h>
#include "ompi_config.h"
#include "sharedfp_individual.h"
#include "mpi.h"
#include "ompi/constants.h"
#include "orte/util/show_help.h"
#include "ompi/mca/sharedfp/sharedfp.h"
#include <stdlib.h>
#include <stdio.h>
#include "mpi.h"
double mca_sharedfp_individual_gettime(void)
{
struct timeval timestamp;
double seconds = 0.0;
double microsec = 0.0;
gettimeofday(&timestamp,NULL);
seconds = (double)timestamp.tv_sec;
microsec = ((double)timestamp.tv_usec)/((double)1000000.0);
return (seconds+microsec);
}