Blame src/mpi/romio/mpl/include/mpl_timer_query_performance_counter.h
|
Packit Service |
c5cf8c |
/* -*- Mode: C; c-basic-offset:4 ; -*- */
|
|
Packit Service |
c5cf8c |
/*
|
|
Packit Service |
c5cf8c |
* (C) 2001 by Argonne National Laboratory.
|
|
Packit Service |
c5cf8c |
* See COPYRIGHT in top-level directory.
|
|
Packit Service |
c5cf8c |
*/
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
#ifndef MPL_TIMER_QUERY_PERFORMANCE_COUNTER_H_INCLUDED
|
|
Packit Service |
c5cf8c |
#define MPL_TIMER_QUERY_PERFORMANCE_COUNTER_H_INCLUDED
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
#include <winsock2.h>
|
|
Packit Service |
c5cf8c |
#include <windows.h>
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
static inline void MPL_wtime(MPL_time_t * timeval)
|
|
Packit Service |
c5cf8c |
{
|
|
Packit Service |
c5cf8c |
QueryPerformanceCounter(timeval);
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
return MPL_TIMER_SUCCESS;
|
|
Packit Service |
c5cf8c |
}
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
#endif /* MPL_TIMER_QUERY_PERFORMANCE_COUNTER_H_INCLUDED */
|