Good evening C# professionals :) I'm an IT student and I'm currently doing my thesis. Can you guys help me? The system I'm working with is timesheet of service engineers. The system supposed to have a timewatch/stopwatch that triggers to start whenever the service engineer started his time. And of course stops when he stopped the time. And then that's it, his work hours will be then calculated based on the time duration.. I'm using asp.net. Is this possible using C# language? please help me. :(
StopWatch
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Amit ChoudharyRank #145 · 15.8K reputationPosted Mar 17, 2010, 4:45 AM EDT
you can do it by following ways:
As the user enter to the system like login or some other activity he do to start the time. Just save that time into either database of some other persistent variable.
Again when he logged out or do some stop activity then again note the time get the difference between them. you will have a total duration he worked.
No Timer No stop watches and you are done with the task.
Please mark as answer.
janine valenzona17 reputationPosted Mar 21, 2010, 9:53 PM EDT