/* -*- Mode: C; c-basic-offset:4 ; -*- */ /* * (C) 2001 by Argonne National Laboratory. * See COPYRIGHT in top-level directory. */ #ifndef MPL_TIMER_WIN86_CYCLE_H_INCLUDED #define MPL_TIMER_WIN86_CYCLE_H_INCLUDED #include #include static inline void MPL_wtime(MPL_time_t * timeval) { register int *f1 = (int *) var_ptr; __asm cpuid; __asm rdtsc; __asm mov ecx, f1; __asm mov[ecx], eax; __asm mov[ecx + TYPE int], edx; return MPL_TIMER_SUCCESS; } #endif /* MPL_TIMER_WIN86_CYCLE_H_INCLUDED */