2014-09-15 18:00:46 +00:00
|
|
|
/*
|
2014-09-20 14:54:24 +00:00
|
|
|
* Copyright (C) 2014 Artem Polyakov <artpol84@gmail.com>
|
|
|
|
* Copyright (c) 2014 Intel, Inc. All rights reserved.
|
|
|
|
* $COPYRIGHT$
|
2015-06-23 20:59:57 -07:00
|
|
|
*
|
2014-09-20 14:54:24 +00:00
|
|
|
* Additional copyrights may follow
|
2015-06-23 20:59:57 -07:00
|
|
|
*
|
2014-09-20 14:54:24 +00:00
|
|
|
* $HEADER$
|
2014-09-15 18:00:46 +00:00
|
|
|
*/
|
|
|
|
|
2014-09-23 12:59:54 +00:00
|
|
|
#ifndef OPAL_UTIL_TIMING_H
|
|
|
|
#define OPAL_UTIL_TIMING_H
|
2014-09-15 18:00:46 +00:00
|
|
|
|
2014-12-08 14:52:37 +06:00
|
|
|
#include "opal_config.h"
|
|
|
|
|
2014-09-15 18:00:46 +00:00
|
|
|
#include "opal/class/opal_list.h"
|
|
|
|
#include "opal/runtime/opal_params.h"
|
|
|
|
|
2015-04-17 11:14:52 +03:00
|
|
|
typedef enum {
|
|
|
|
OPAL_TIMING_AUTOMATIC_TIMER,
|
|
|
|
OPAL_TIMING_GET_TIME_OF_DAY,
|
|
|
|
OPAL_TIMING_CYCLE_NATIVE,
|
|
|
|
OPAL_TIMING_USEC_NATIVE
|
|
|
|
} opal_timer_type_t;
|
|
|
|
|
2014-09-15 18:00:46 +00:00
|
|
|
#if OPAL_ENABLE_TIMING
|
|
|
|
|
2017-03-29 02:47:06 +07:00
|
|
|
typedef double (*opal_timing_ts_func_t)(void);
|
2014-09-15 18:00:46 +00:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|