Ignore:
Timestamp:
Mar 2, 2013, 10:45:46 PM (13 years ago)
Author:
Frederik Heber <heber@…>
Children:
b9273a
Parents:
8f60da
git-author:
Frederik Heber <heber@…> (03/01/13 13:41:05)
git-committer:
Frederik Heber <heber@…> (03/02/13 22:45:46)
Message:

Enhanced Chronos for more accurate timekeeping.

  • Chronos is now safe to use w.r.t. recursive function calls.
  • Chronos now gets const ref of token name in each function.
  • TESTFIX: dummyTest() now checks on recursive function.
  • Chronos now offers its internal timekeeping via const ref to outside.
  • Chronos also now has up to nanoseconds precision when either time.h or sys/time.h is present.
  • librt required from clock_gettime().
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Helpers/unittests/stubs/ChronosStub.cpp

    r8f60da r3f06bb  
    2828{}
    2929
    30 double Chronos::getTime(const std::string _name) const
     30double Chronos::getTime(const std::string &_name) const
    3131{
    3232  return 0.;
    3333}
    3434
    35 void Chronos::resetTime(const std::string _name)
     35void Chronos::resetTime(const std::string &_name)
    3636{}
    3737
    38 void Chronos::startTiming(const std::string _name)
     38void Chronos::startTiming(const std::string &_name)
    3939{}
    4040
     
    4444}
    4545
    46 void Chronos::endTiming(const std::string _name)
     46void Chronos::endTiming(const std::string &_name)
    4747{}
    4848
Note: See TracChangeset for help on using the changeset viewer.