Skip to content

Commit

Permalink
- Use initialized data in rtclock.c on Windows/OSX
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@7690 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Jan 13, 2011
1 parent 91b6d0f commit 860d892
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions c_runtime/rtclock.c
Expand Up @@ -46,8 +46,8 @@ static LARGE_INTEGER default_acc_tp[NUM_RT_CLOCKS];
static LARGE_INTEGER default_tick_tp[NUM_RT_CLOCKS];

static LARGE_INTEGER performance_frequency;
static LARGE_INTEGER *acc_tp;
static LARGE_INTEGER *tick_tp;
static LARGE_INTEGER *acc_tp=default_acc_tp;
static LARGE_INTEGER *tick_tp=default_tick_tp;

void rt_tick(int ix) {
static int init = 0;
Expand Down Expand Up @@ -95,8 +95,8 @@ double rt_total(int ix) {
static uint64_t default_acc_tp[NUM_RT_CLOCKS];
static uint64_t default_tick_tp[NUM_RT_CLOCKS];

static uint64_t *acc_tp;
static uint64_t *tick_tp;
static uint64_t *acc_tp=default_acc_tp;
static uint64_t *tick_tp=default_tick_tp;

void rt_tick(int ix) {
tick_tp[ix] = mach_absolute_time();
Expand Down

0 comments on commit 860d892

Please sign in to comment.