2012-07-12 06:55:27 +00:00
|
|
|
|
using System;
|
|
|
|
|
using MediaBrowser.Controller;
|
2012-07-30 04:06:05 +00:00
|
|
|
|
using MediaBrowser.Common.Progress;
|
2012-07-12 06:55:27 +00:00
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Program
|
|
|
|
|
{
|
|
|
|
|
class Program
|
|
|
|
|
{
|
|
|
|
|
static void Main(string[] args)
|
|
|
|
|
{
|
|
|
|
|
LoadKernel();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static void LoadKernel()
|
|
|
|
|
{
|
|
|
|
|
DateTime now = DateTime.Now;
|
|
|
|
|
|
|
|
|
|
Console.WriteLine("Loading");
|
|
|
|
|
|
2012-07-21 18:39:47 +00:00
|
|
|
|
Kernel kernel = new Kernel();
|
2012-07-12 06:55:27 +00:00
|
|
|
|
|
2012-07-30 04:06:05 +00:00
|
|
|
|
Progress<TaskProgress> progress = new Progress<TaskProgress>();
|
|
|
|
|
|
|
|
|
|
kernel.Init(progress);
|
2012-07-12 06:55:27 +00:00
|
|
|
|
|
|
|
|
|
var time = DateTime.Now - now;
|
|
|
|
|
Console.WriteLine("Done in " + time.TotalSeconds + " seconds");
|
2012-07-15 20:27:07 +00:00
|
|
|
|
|
2012-07-12 06:55:27 +00:00
|
|
|
|
Console.WriteLine("Press Enter to quit.");
|
|
|
|
|
Console.ReadLine();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|