bigboy123 Posted August 19, 2009 at 08:45 PM Report #283848 Posted August 19, 2009 at 08:45 PM Alguém me sabe dizer como faço um system uptime ? Ou seja, Como faço um programa que me diga o tempo que o PC está ligado desde que foi Iniciada a Sessão... Espero respostas ^.^
anolsi Posted August 19, 2009 at 08:54 PM Report #283851 Posted August 19, 2009 at 08:54 PM Dim tempo As TimeSpan = TimeSpan.FromMilliseconds(Environment.TickCount) MessageBox.Show("Dias: " & tempo.Days & vbNewLine & "Horas: " & tempo.Hours & vbNewLine & "Minutos: " & tempo.Minutes & vbNewLine & "Segundos: " & tempo.Seconds) "Nós somos o que fazemos repetidamente, a excelência não é um feito, e sim, um hábito."Não respondo a questões por PM que possam ser colocadas no fórum!
bigboy123 Posted August 19, 2009 at 10:20 PM Author Report #283867 Posted August 19, 2009 at 10:20 PM Dim tempo As TimeSpan = TimeSpan.FromMilliseconds(Environment.TickCount) MessageBox.Show("Dias: " & tempo.Days & vbNewLine & "Horas: " & tempo.Hours & vbNewLine & "Minutos: " & tempo.Minutes & vbNewLine & "Segundos: " & tempo.Seconds) Muito obrigado. É tudo o que preciso 🙂😛👍 :thumbsup:
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now