Skip to content

Commit

Permalink
Fix rtclock compilation on OMDEV
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@7680 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Jan 12, 2011
1 parent 6526b39 commit 7026706
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions c_runtime/rtclock.c
Expand Up @@ -58,13 +58,13 @@ double rt_tock(int ix) {

void rt_clear(int ix)
{
acc_tp[ix] = 0;
acc_tp[ix].QuadPart = 0;
}

void rt_accumulate(int ix) {
LARGE_INTEGER tock_tp;
QueryPerformanceCounter(&tock_tp);
acc_tp[ix] += tock_tp - tick_tp[ix];
acc_tp[ix].QuadPart += tock_tp.QuadPart - tick_tp[ix].QuadPart;
}

double rt_total(int ix) {
Expand Down

0 comments on commit 7026706

Please sign in to comment.