-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbenchmarkdata.cpp
More file actions
33 lines (26 loc) · 814 Bytes
/
benchmarkdata.cpp
File metadata and controls
33 lines (26 loc) · 814 Bytes
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
26
27
28
29
30
31
32
33
#include "benchmarkdata.hpp"
//Standardkonstruktor
BenchmarkData::BenchmarkData():
time(0), transfers(0), operations(0) { };
//Benutzerdefinierter Konstruktor
BenchmarkData :: BenchmarkData(double _time, unsigned long int _transfers, unsigned long int _operations) :
time(_time), transfers(_transfers), operations(_operations) { };
// Kopier-Konstruktor
BenchmarkData :: BenchmarkData(const BenchmarkData& other) { };
//Destruktor
BenchmarkData :: ~BenchmarkData() { };
//Bandbreite berechnen
long double BenchmarkData :: bandbreite()
{
return (double(transfers)/time)/1000000000.0;
}
//Bandbreite berechnen
long double BenchmarkData :: performance()
{
return (double(operations)/time)/1000000000.0;
}
//Bandbreite berechnen
double BenchmarkData :: arith_int()
{
return performance()/bandbreite();
}