Website Summary Files Commits Branches @commit @diff @stats
path: root / Week02 / Exercise06 / time.h
blob: a3a5921f39d6699081bf00a0da28c6c706470cff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef _TIME
#define _TIME

struct Time {
	unsigned hour;
	unsigned minutes;
	unsigned seconds;

	void Advance(const Time& other);
};

Time millisecondsToTime(unsigned milliseconds);

#endif