- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTimeObject.cpp
More file actions
Latest commit
25 lines (20 loc) · 570 Bytes
/
Copy pathTimeObject.cpp
File metadata and controls
25 lines (20 loc) · 570 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
//
// Created by Sierra Kilo on 06-Aug-18.
//
#include"TimeObject.h"
unsignedintTimeObject::get_msecs(){
// returns the saved time data, after converting it to milliseconds
return (hrs * 60 * 60 * 1000) + (mins * 60 * 1000) + (secs * 1000) + (msecs);
}
TimeObject::TimeObject(){
this->hrs = 0;
this->mins = 0;
this->secs = 0;
this->msecs = 0;
}
TimeObject::TimeObject(unsignedint hrs, unsignedint mins, unsignedint secs, unsignedint msecs){
this->hrs = hrs;
this->mins = mins;
this->secs = secs;
this->msecs = msecs;
}