01: #include <stdio.h>
02: #include <windows.h>
03: 
04: #include "Point.h"
05: #include "Piece.h"
06: #include "Puzzle.h"
07: 
08: 
09: extern "C" int Solutions;
10: 
11: 
12: void main()
13: {
14:         LARGE_INTEGER pc1, pc2, MSFrequency;
15: 
16:         QueryPerformanceCounter(&pc1);
17: 
18:         CPuzzle* pPuzzle = new CPuzzle();
19:         pPuzzle->Solve();
20:         delete pPuzzle;
21: 
22:         QueryPerformanceCounter(&pc2);
23: 
24:         QueryPerformanceFrequency(&MSFrequency);
25:         double t = (double)(pc2.QuadPart-pc1.QuadPart) / (double)MSFrequency.QuadPart;
26: 
27:         printf("\nSolutions: %i (%f seconds)\n",Solutions,t);
28: }