1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <stdio.h>
#include <iostream>
#include "ClockClass.cpp"
int main() {
	clock c;
	c.setTime(0,0,0);
	int ms = 0;
	while (true)
	{
		std::system("cls");
		ms = ms + 1;
		if ( ms == 1000 )
		{
			ms = 0;
			c.setTime(c.getTime(2), c.getTime(1), c.getTime(0)+1);
			c.updateTime();
		}
		printf("Time: %d:%d:%d.%d", c.getTime(2), c.getTime(1), c.getTime(0), ms);
	}
	return 0;
}