Ignore:
Timestamp:
Aug 21, 2010, 7:50:45 PM (10 years ago)
Author:
sam
Message:

Get the timer to talk milliseconds instead of seconds.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/profiler.cpp

    r122 r149  
    4848void Profiler::Start(int id)
    4949{
    50     data[id].timer.GetSeconds();
     50    data[id].timer.GetMs();
    5151}
    5252
    5353void Profiler::Stop(int id)
    5454{
    55     float delta_time = data[id].timer.GetSeconds();
     55    float deltams = data[id].timer.GetMs();
    5656
    57     data[id].history[data->frame % ProfilerData::HISTORY] = delta_time;
     57    data[id].history[data->frame % ProfilerData::HISTORY] = deltams;
    5858    data[id].frame++;
    5959    data[id].mean = 0.0f;
Note: See TracChangeset for help on using the changeset viewer.