Changeset 763


Ignore:
Timestamp:
Apr 29, 2011, 3:28:24 PM (9 years ago)
Author:
sam
Message:

ps3: fix a bug in the timer code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/timer.cpp

    r758 r763  
    8787        uint64_t cycles;
    8888        SYS_TIMEBASE_GET(cycles);
    89         ret = ms_per_cycle * cycles;
     89        ret = ms_per_cycle * (cycles - cycles0);
    9090        if (update)
    9191            cycles0 = cycles;
Note: See TracChangeset for help on using the changeset viewer.