Changeset 1980

Show
Ignore:
Timestamp:
04/16/08 21:18:35 (7 months ago)
Author:
aturner
Message:

fix compile on non-OSX systems. refs #41

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • features/performance/src/common/timer.h

    r1979 r1980  
    207207    *ctx = UpTime(); 
    208208#else 
    209     gettimeofday(ctx, NULL) 
     209    gettimeofday(ctx, NULL); 
    210210#endif 
    211211} 
     
    239239    gettimeofday(&now, NULL); 
    240240 
    241     if (!timerisset(last)) { 
     241    if (!timerisset(ctx)) { 
    242242        timesclear(ret); 
    243243    } else { 
    244         timersub(&now, last, &delta); 
     244        timersub(&now, ctx, &delta); 
    245245        TIMEVAL_TO_TIMESPEC(&delta, ret); 
    246246    }