Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TimeSpan stableTimeSpan = new TimeSpan(0, 0, 10);
- DateTime stableTimerStart = DateTime.Now;
- float t = (DateTime.Now.Ticks - stableTimerStart.Ticks) / (float)stableTimeSpan.Ticks;
- int test = unchecked((int)(t * 100));
- MyProgressBar.value = test;
Add Comment
Please, Sign In to add comment