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

C#

 
GeneralRe: Using too many timers in a program Pin
Luc Pattyn24-Sep-09 2:17
sitebuilderLuc Pattyn24-Sep-09 2:17 
GeneralRe: Using too many timers in a program Pin
Tom Deketelaere24-Sep-09 2:45
professionalTom Deketelaere24-Sep-09 2:45 
GeneralRe: Using too many timers in a program Pin
Luc Pattyn24-Sep-09 2:54
sitebuilderLuc Pattyn24-Sep-09 2:54 
GeneralRe: Using too many timers in a program Pin
Tom Deketelaere24-Sep-09 2:57
professionalTom Deketelaere24-Sep-09 2:57 
GeneralRe: Using too many timers in a program Pin
Luc Pattyn24-Sep-09 3:15
sitebuilderLuc Pattyn24-Sep-09 3:15 
GeneralRe: Using too many timers in a program Pin
Tom Deketelaere24-Sep-09 3:19
professionalTom Deketelaere24-Sep-09 3:19 
GeneralRe: Using too many timers in a program Pin
Luc Pattyn24-Sep-09 3:29
sitebuilderLuc Pattyn24-Sep-09 3:29 
AnswerRe: Using too many timers in a program Pin
Keith Barrow24-Sep-09 2:26
professionalKeith Barrow24-Sep-09 2:26 
Is there any reason why you aren't just reacting to events (e.g. the user opening the browser or loging in into the PC) and just recording the time the events are raised?

IMO (and I'm prepared to be flamed on this) doing This will have a far smaller impact on performance over continually polling and, if you implement it correctly, you'll get an audit log of who was on which machine and when (useful where there is an Internet connection ....). This will make the cost calcualtion a little harder if, for example you have different rates at different times, but it shouldn't be too bad. As for taking breaks etc, you can add functionality stop/ & restart times just associate these with one user session.

CCC solved so far: 2 (including a Hard One!)

GeneralRe: Using too many timers in a program Pin
Luc Pattyn24-Sep-09 2:56
sitebuilderLuc Pattyn24-Sep-09 2:56 
GeneralRe: Using too many timers in a program Pin
teknolog12324-Sep-09 6:54
teknolog12324-Sep-09 6:54 
QuestionCalling method from C++ ocx Pin
Q2A23-Sep-09 23:59
Q2A23-Sep-09 23:59 
AnswerRe: Calling method from C++ ocx Pin
Christian Graus24-Sep-09 0:42
protectorChristian Graus24-Sep-09 0:42 
AnswerRe: Calling method from C++ ocx Pin
Luc Pattyn24-Sep-09 0:46
sitebuilderLuc Pattyn24-Sep-09 0:46 
AnswerRe: Calling method from C++ ocx [modified] Pin
Hristo-Bojilov24-Sep-09 0:54
Hristo-Bojilov24-Sep-09 0:54 
QuestionControl.BeginInvoke() Pin
kmb8923-Sep-09 23:53
kmb8923-Sep-09 23:53 
AnswerRe: Control.BeginInvoke() Pin
N a v a n e e t h24-Sep-09 0:05
N a v a n e e t h24-Sep-09 0:05 
AnswerRe: Control.BeginInvoke() Pin
PIEBALDconsult24-Sep-09 18:10
mvePIEBALDconsult24-Sep-09 18:10 
QuestionFileNotFoundException on file that exists! Pin
Thomas ST23-Sep-09 23:50
Thomas ST23-Sep-09 23:50 
AnswerRe: FileNotFoundException on file that exists! Pin
Keith Barrow24-Sep-09 0:35
professionalKeith Barrow24-Sep-09 0:35 
AnswerRe: FileNotFoundException on file that exists! [solved] Pin
Thomas ST24-Sep-09 1:15
Thomas ST24-Sep-09 1:15 
GeneralRe: FileNotFoundException on file that exists! [solved] Pin
Keith Barrow24-Sep-09 1:34
professionalKeith Barrow24-Sep-09 1:34 
QuestionSerializing an inhertid class Pin
tvbarnard23-Sep-09 23:46
tvbarnard23-Sep-09 23:46 
GeneralRe: Serializing an inhertid class Pin
tvbarnard24-Sep-09 0:00
tvbarnard24-Sep-09 0:00 
QuestionCreate a word document without using Interop object [modified] Pin
Swetha Srinivasan23-Sep-09 22:38
Swetha Srinivasan23-Sep-09 22:38 
AnswerRe: Create a word document without using Interop object Pin
stancrm23-Sep-09 22:42
stancrm23-Sep-09 22:42 

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.