mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 13:57:57 -07:00
26 lines
362 B
C++
26 lines
362 B
C++
// Copyright 2013 Dolphin Emulator Project
|
|
// Licensed under GPLv2
|
|
// Refer to the license.txt file included.
|
|
|
|
#include "SWStatistics.h"
|
|
|
|
SWStatistics swstats;
|
|
|
|
template <class T>
|
|
void Xchg(T& a, T&b)
|
|
{
|
|
T c = a;
|
|
a = b;
|
|
b = c;
|
|
}
|
|
|
|
SWStatistics::SWStatistics()
|
|
{
|
|
frameCount = 0;
|
|
}
|
|
|
|
void SWStatistics::ResetFrame()
|
|
{
|
|
memset(&thisFrame, 0, sizeof(ThisFrame));
|
|
}
|