• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › General Discussion v
« Previous 1 ... 330 331 332 333 334 ... 368 Next »

two "public:" declerations in timer.h?
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
two "public:" declerations in timer.h?
01-21-2010, 10:09 AM
#1
sva71 Offline
Junior Member
**
Posts: 5
Threads: 1
Joined: Aug 2009
I've been browsing the dolphin source code recently and found this in timer.h (and mods, before you ban me, I have read the rules of the other forum and deleted the other post... sorry Blush):

Code:
class Timer
{
public:
        Timer();

        void Start();
        void Stop();
        void Update();

        // The time difference is always returned in milliseconds, regardless of alternative internal representation
        u64 GetTimeDifference();
        void AddTimeDifference();
        void WindBackStartingTime(u64 WindBack);

        static void IncreaseResolution();
        static void RestoreResolution();
        static u64 GetTimeSinceJan1970();
        static u64 GetLocalTimeSinceJan1970();
        static double GetDoubleTime();

        static std::string GetTimeFormatted();
        std::string GetTimeElapsedFormatted() const;
        u64 GetTimeElapsed();

public:
        u64 m_LastTime;
        u64 m_StartTime;
        u64 m_frequency;
        bool m_Running;
};

Is there any reason why the data members are under a seperate "public:" declaration? Why not simply have the data members (I mean the last 4 variables if I'm using the term incorrectly) under the other "public:"? Forgive me if this has been answered before, I tried searching the forum but I couldn't find anything relating to this, and sorry if I'm wasting your time with such a foolish questions, I'm just studying computer science at a local community college and quite frankly I find Dolphin fascinating and often look through the code (even though I don't understand too much of it yet).
Find
Reply
01-22-2010, 05:49 AM
#2
ector Offline
PPSSPP author, Dolphin co-founder
*
Project Owner  Developers (Administrators)
Posts: 189
Threads: 2
Joined: Mar 2009
I think that second one was meant to be private: .
Website Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode