diff options
author | swhite <swhite@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2004-08-12 09:42:49 +0000 |
---|---|---|
committer | swhite <swhite@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2004-08-12 09:42:49 +0000 |
commit | e5ee137768e7eede064dcf150346f0a0cf099fad (patch) | |
tree | 2552105543c8291276a8469ac9837d3f023065fa /src/main/DefaultTimers.c | |
parent | afeaf4703809ae98e4ae3da4095f321ef312bd93 (diff) |
Functions completing the Cactus Timer API.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@3828 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/main/DefaultTimers.c')
-rw-r--r-- | src/main/DefaultTimers.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/DefaultTimers.c b/src/main/DefaultTimers.c index 358c81ca..2412c0a5 100644 --- a/src/main/DefaultTimers.c +++ b/src/main/DefaultTimers.c @@ -332,6 +332,8 @@ static void CCTKi_TimerGetTimeOfDayGet(int timernum, void *idata, cTimerVal *val vals[0].heading = GetTimeOfDayHeading; vals[0].units = GetTimeOfDayUnits; vals[0].val.d = data->total.tv_sec + (double)data->total.tv_usec/1000000.0; + vals[0].seconds = vals[0].val.d; + vals[0].resolution = 1.e-6; } @@ -605,6 +607,8 @@ static void CCTKi_TimerGetrUsageGet(int timernum, void *idata, cTimerVal *vals) vals[0].heading = GetrUsageHeading; vals[0].units = GetrUsageUnits; vals[0].val.d = data->total.tv_sec + (double)data->total.tv_usec/1000000.0; + vals[0].seconds = vals[0].val.d; + vals[0].resolution = 1.e-6; } |