Ejemplo n.º 1
0
        public void TestFillSqlFromMongo()
        {
            var start = DateTime.Now;

            var pimp = new Pimp();

            // in 389.0 s
            pimp.UpdatNodesInBulk();
            var time1 = DateTime.Now.Subtract(start).TotalMilliseconds;

            // in 821.0 s
            pimp.UpdatWaysInBulk();
            var time2 = DateTime.Now.Subtract(start).TotalMilliseconds - time1;

            // in 0.778 s
            pimp.UpdateRelationsInBulk();
            var time3 = DateTime.Now.Subtract(start).TotalMilliseconds - time2;

            Debug.WriteLine("Updating nodes in {0} ms", time1);
            Debug.WriteLine("Updating ways in {0} ms", time2);
            Debug.WriteLine("Updating relations in {0} ms", time3);

            var totalTime = DateTime.Now.Subtract(start).TotalMilliseconds;

            Debug.WriteLine("Done in {0} ms", totalTime);
        }
Ejemplo n.º 2
0
        public PimpModel(Pimp entity)
        {
            Entity = entity;

            Id     = entity.Id;
            Name   = entity.Name;
            W****s = entity.W****s.ToList();

            foreach (var w***e in W****s)
            {
                WhoreList += $"{w***e.FirstName} {w***e.LastName}\n";
            }
        }
Ejemplo n.º 3
0
        // Update Thread
        private void Update(object sender)
        {
            Pimp pimp = new Pimp(Pimp.BlockMethod.Zero, true, true, false);

            if (pimp.Inject("bf4"))
            {
                while (IsGameRunning)
                {
                    bool check = pimp.IsScreenShot();
                    if (!check)
                    {
                        rect.Width  = overlay.Width;
                        rect.Height = overlay.Height;
                        d2d.BeginScene();
                        d2d.ClearScene(clearBrush);
                        OverlayControl();
                        d2d.EndScene();
                    }
                }
                RPM.CloseProcess();
                Environment.Exit(0);
            }
        }