Ignore:
Timestamp:
Apr 29, 2012, 10:02:20 PM (8 years ago)
Author:
sam
Message:

core: make timers second-based rather than millisecond-based.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/profiler.cpp

    r735 r1309  
    5252void Profiler::Start(int id)
    5353{
    54     data[id].timer.GetMs();
     54    data[id].timer.Get();
    5555}
    5656
    5757void Profiler::Stop(int id)
    5858{
    59     float deltams = data[id].timer.GetMs();
     59    float seconds = data[id].timer.Get();
    6060
    61     data[id].history[Ticker::GetFrameNum() % ProfilerData::HISTORY] = deltams;
     61    data[id].history[Ticker::GetFrameNum() % ProfilerData::HISTORY] = seconds;
    6262    data[id].avg = 0.0f;
    6363    data[id].max = 0.0f;
Note: See TracChangeset for help on using the changeset viewer.