Login Register


[VB.Net]Get computer running hour(s) and minutes filter_list
Author
Message
[VB.Net]Get computer running hour(s) and minutes #1
All credits go to me worked 10 minutes on it.

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 Function



Usage:
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.

Reply





Messages In This Thread
[VB.Net]Get computer running hour(s) and minutes - by 1234hotmaster - 05-02-2011, 10:52 AM



Users browsing this thread: 1 Guest(s)