Changeset e32205 in git


Ignore:
Timestamp:
Aug 2, 2011, 10:43:27 AM (13 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
Children:
0a80331a686854fd8c674703b79f6fab0608d93a
Parents:
5ddb8d5d7efafd17c8372dcc69d4fc43adbf4be6
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2011-08-02 10:43:27+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 13:01:20+01:00
Message:
fix timer.cc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/timer.cc

    r5ddb8d re32205  
    88*/
    99#include <sys/resource.h>
     10#include <time.h>
     11#include <sys/time.h>
    1012#include <unistd.h>
    1113
     
    145147static struct timeval  siStartRTime;
    146148static struct timezone tzp;
     149
     150void startRTimer()
     151{
     152  gettimeofday(&siStartRTime, &tzp);
     153}
     154
    147155void initRTimer()
    148156{
     
    152160#else
    153161  memset(&startRl,0,sizeof(startRl));
    154   memset(&startRTime,0,sizeof(startRTime));
    155 #endif
    156 }
    157 
    158 void startRTimer()
    159 {
    160   gettimeofday(&siStartRTime, &tzp);
     162  memset(&siStartRTime,0,sizeof(siStartRTime));
     163#endif
    161164}
    162165
Note: See TracChangeset for help on using the changeset viewer.