Click here to Skip to main content
15,881,882 members
Home / Discussions / C#
   

C#

 
GeneralRe: same enumeration, different results? Pin
PIEBALDconsult20-Mar-12 3:34
mvePIEBALDconsult20-Mar-12 3:34 
GeneralRe: same enumeration, different results? Pin
CCodeNewbie20-Mar-12 8:29
CCodeNewbie20-Mar-12 8:29 
GeneralRe: same enumeration, different results? Pin
PIEBALDconsult20-Mar-12 11:03
mvePIEBALDconsult20-Mar-12 11:03 
GeneralRe: same enumeration, different results? Pin
CCodeNewbie20-Mar-12 12:08
CCodeNewbie20-Mar-12 12:08 
GeneralRe: same enumeration, different results? Pin
CCodeNewbie20-Mar-12 2:30
CCodeNewbie20-Mar-12 2:30 
GeneralRe: same enumeration, different results? Pin
Alan N20-Mar-12 3:39
Alan N20-Mar-12 3:39 
GeneralRe: same enumeration, different results? Pin
CCodeNewbie20-Mar-12 8:33
CCodeNewbie20-Mar-12 8:33 
GeneralRe: same enumeration, different results? Pin
Alan N20-Mar-12 10:47
Alan N20-Mar-12 10:47 
I can't understand your reasoning in this matter.

The SystemUp Time performance counter description is

System Up Time is the elapsed time (in seconds) that the computer has been running since it was last started. This counter displays the difference between the start time and the current time.

The Environment.TickCount description is

A 32-bit signed integer containing the amount of time in milliseconds that has passed since the last time the computer was started.

Subtracting either from the current time gets the time when the computer was started. I don't see why (or how) you differentiate the system start time and the "System" process start time.

Alan.
GeneralRe: same enumeration, different results? Pin
CCodeNewbie20-Mar-12 12:00
CCodeNewbie20-Mar-12 12:00 
AnswerWrongMagicConstantInHorribleCodeException Pin
Luc Pattyn19-Mar-12 13:03
sitebuilderLuc Pattyn19-Mar-12 13:03 
GeneralRe: WrongMagicConstantInHorribleCodeException Pin
CCodeNewbie19-Mar-12 13:05
CCodeNewbie19-Mar-12 13:05 
GeneralRe: WrongMagicConstantInHorribleCodeException Pin
CCodeNewbie19-Mar-12 13:08
CCodeNewbie19-Mar-12 13:08 
Answerfloat maxDaysInInt=((float)int.MaxValue)/1000/60/60/24; Pin
Luc Pattyn19-Mar-12 13:25
sitebuilderLuc Pattyn19-Mar-12 13:25 
GeneralRe: float maxDaysInInt=((float)int.MaxValue)/1000/60/60/24; Pin
CCodeNewbie20-Mar-12 2:32
CCodeNewbie20-Mar-12 2:32 
AnswerRe: same enumeration, different results? Pin
Alan N19-Mar-12 13:29
Alan N19-Mar-12 13:29 
GeneralRe: same enumeration, different results? Pin
CCodeNewbie20-Mar-12 2:21
CCodeNewbie20-Mar-12 2:21 
QuestionQuery an Excel Spreadsheet Pin
PDTUM19-Mar-12 6:35
PDTUM19-Mar-12 6:35 
AnswerRe: Query an Excel Spreadsheet Pin
PIEBALDconsult19-Mar-12 8:26
mvePIEBALDconsult19-Mar-12 8:26 
GeneralRe: Query an Excel Spreadsheet Pin
PDTUM19-Mar-12 8:47
PDTUM19-Mar-12 8:47 
GeneralRe: Query an Excel Spreadsheet Pin
PIEBALDconsult19-Mar-12 12:04
mvePIEBALDconsult19-Mar-12 12:04 
AnswerRe: Query an Excel Spreadsheet Pin
Dave Kreskowiak19-Mar-12 9:10
mveDave Kreskowiak19-Mar-12 9:10 
GeneralRe: Query an Excel Spreadsheet Pin
PDTUM19-Mar-12 11:08
PDTUM19-Mar-12 11:08 
AnswerRe: Query an Excel Spreadsheet Pin
JOAT-MON19-Mar-12 13:27
JOAT-MON19-Mar-12 13:27 
GeneralRe: Query an Excel Spreadsheet Pin
PDTUM19-Mar-12 13:51
PDTUM19-Mar-12 13:51 
GeneralRe: Query an Excel Spreadsheet Pin
JOAT-MON19-Mar-12 14:12
JOAT-MON19-Mar-12 14:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.