ROSS
bgq.c
Go to the documentation of this file.
1#include <ross.h>
2
3static const tw_optdef clock_opts [] =
4{
5 TWOPT_GROUP("ROSS Timing"),
6 TWOPT_ULONGLONG("clock-rate", g_tw_clock_rate, "CPU Clock Rate"),
8};
9
11{
12 return clock_opts;
13}
14
17{
18 tw_clock result = 0;
19#ifdef ROSS_timing
20 result = GetTimeBase();
21#endif
22 return(result);
23}
24
25void
27{
28 me->clock_time = 0;
30}
31
34{
36 return me->clock_time;
37}
static const tw_optdef clock_opts[]
Definition aarch64.c:13
tw_clock tw_clock_now(tw_pe *me)
Definition bgq.c:33
const tw_optdef * tw_clock_setup(void)
Definition bgq.c:10
void tw_clock_init(tw_pe *me)
Definition bgq.c:26
tw_clock tw_clock_read(void)
Definition bgq.c:16
uint64_t tw_clock
Definition aarch64.h:6
unsigned long long g_tw_clock_rate
#define TWOPT_GROUP(h)
Definition tw-opts.h:30
#define TWOPT_ULONGLONG(n, v, h)
Definition tw-opts.h:32
#define TWOPT_END()
Definition tw-opts.h:39
Holds the entire PE state.
Definition ross-types.h:416
tw_clock clock_offset
Initial clock value for this PE.
Definition ross-types.h:437
tw_clock clock_time
Most recent clock value for this PE.
Definition ross-types.h:438