private void PerformGIR() { Console.WriteLine("Starting GIR"); DateTime start = DateTime.Now; mGirIndices = GIR.GetGIR(mVocabList.GetVocabList().Count); DateTime end = DateTime.Now; Console.WriteLine("Finished GIR in " + (end - start).ToString()); }
private async void btnTranslate_Click(object sender, EventArgs e) { Translator translator = new Translator(); //VocabList vocabList = translator.Translate(txtInput.Text); //vocabList.WriteToFile("Achtung.txt"); VocabList vocabList = new VocabList("Achtung.txt"); //VocabList vocabList = new VocabList("Top2000ToGerman.txt", 0, 10); Console.WriteLine("Starting GIR"); DateTime start = DateTime.Now; List <int> girIndeces = GIR.GetGIR(vocabList.GetVocabList().Count);//vocabList.GetVocabList()); DateTime end = DateTime.Now; Console.WriteLine("Finished GIR in " + (end - start).ToString()); }