summaryrefslogtreecommitdiff
path: root/Source/Plugins/Plugin_VideoSoftware/Src/SWStatistics.cpp
blob: 99b51b77a12b471d87687ff520d4c23a6a1aa54e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// 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));
}