2013-04-18 03:29:41 +00:00
|
|
|
// Copyright 2013 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2
|
|
|
|
// Refer to the license.txt file included.
|
2010-06-09 01:37:08 +00:00
|
|
|
|
2011-02-03 19:55:30 +00:00
|
|
|
#include "SWStatistics.h"
|
2010-06-09 01:37:08 +00:00
|
|
|
|
2011-02-03 19:55:30 +00:00
|
|
|
SWStatistics swstats;
|
2010-06-09 01:37:08 +00:00
|
|
|
|
|
|
|
template <class T>
|
|
|
|
void Xchg(T& a, T&b)
|
|
|
|
{
|
|
|
|
T c = a;
|
|
|
|
a = b;
|
|
|
|
b = c;
|
|
|
|
}
|
|
|
|
|
2011-02-03 19:55:30 +00:00
|
|
|
SWStatistics::SWStatistics()
|
2010-06-09 01:37:08 +00:00
|
|
|
{
|
2013-04-14 03:54:02 +00:00
|
|
|
frameCount = 0;
|
2010-06-09 01:37:08 +00:00
|
|
|
}
|
|
|
|
|
2011-02-03 19:55:30 +00:00
|
|
|
void SWStatistics::ResetFrame()
|
2010-06-09 01:37:08 +00:00
|
|
|
{
|
|
|
|
memset(&thisFrame, 0, sizeof(ThisFrame));
|
|
|
|
}
|