Hi, I need some help with some code.
I need to know how long the computer is online or how long the user
has been logged in.
Ok I have a few options:
-Take a file that has been created at startup and display his creation
date. (tried this, but its difficult to convert the date and time to
how long it has been on)
-systemmonitorco ntrol. This one displays how long computer has been on
in seconds. Only this format is not easy to convert. It seams that on
every count it places some random spaces and dots. (I tried this one
aswell)
OK other options...
When pressing ctrl+alt+delete on computer you can see how long you are
logged in. Isnt the an easy way to get this? Maybe an API? Then is my
question which API?
So simple and so difficult...
Thanks.
Grtz,
Sander
BTW: Yes I searched google!
I need to know how long the computer is online or how long the user
has been logged in.
Ok I have a few options:
-Take a file that has been created at startup and display his creation
date. (tried this, but its difficult to convert the date and time to
how long it has been on)
-systemmonitorco ntrol. This one displays how long computer has been on
in seconds. Only this format is not easy to convert. It seams that on
every count it places some random spaces and dots. (I tried this one
aswell)
OK other options...
When pressing ctrl+alt+delete on computer you can see how long you are
logged in. Isnt the an easy way to get this? Maybe an API? Then is my
question which API?
So simple and so difficult...
Thanks.
Grtz,
Sander
BTW: Yes I searched google!
Comment