-
Notifications
You must be signed in to change notification settings - Fork 0
/
commandLineView.h
50 lines (46 loc) · 1.1 KB
/
commandLineView.h
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
* Title: commandLineView.h
* Purpose: Creates header file for the Command Line Inteface
* Author: Micah Bonewell
* Started on: Feb 25, 2019
* Finished on: Feb 26, 2019
* Class: CS 232
* Professor: Joel Adams
*/
#ifndef COMMANDLINEVIEW_H_
#define COMMANDLINEVIEW_H_
#include <algorithm> // finds strings in vector
#include <string> // for string class
#include <stdio.h>
class commandLineView {
public:
commandLineView();
void outputProcessTime(double processTime);
void outputThreadTime(double threadTime);
};
/* Constructor class for commandLineView.
*
*/
inline
commandLineView::commandLineView() {
cout << "You're using the command Line View" << endl;
}
/* void method for outputing process results
*
*/
inline
void commandLineView::outputProcessTime(double processTime)
{
cout << "The average time to create a Process is: " <<
processTime << endl;
}
/* void method for outputing thread results
*
*/
inline
void commandLineView::outputThreadTime(double threadTime)
{
cout << "The average time to create a Thread is: " <<
threadTime << endl;
}
#endif /* COMMANDLINEVIEW_H_ */