[VB.Net]Get computer running hour(s) and minutes 05-02-2011, 10:52 AM
#1
All credits go to me worked 10 minutes on it.
Code:
Usage:
Code:
Code:
Public Function GetPCRunningHours()
If Environment.TickCount \ 60000 >= 1000 Then
Return (Environment.TickCount \ 60000).ToString.Insert(2, " Hours ").Insert(11, " Minutes")
Else
Return (Environment.TickCount \ 60000).ToString.Insert(1, " Hours ").Insert(10, " Minutes")
End If
End FunctionUsage:
Code:
MsgBox("Computer Has been running for " & GetPCRunningHours)
(This post was last modified: 05-02-2011, 08:40 PM by Skullmeat.)
Pierce the life fibers with your drill.
![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)