well you could have a global variable which holds a value, such as say a DateTime object - this datetime object will have seconds added it to it in the timer tick event (set the timer interval to 1000 ms for 1 second). Then when the button has been pressed, stop the timer and obtain the value from the global datetime object which is used to hold the seconds. Example:
private DateTime totalTime = new DateTime();
..
..
private void timer1_Tick(object sender, EventArgs e)
{
this.totalTime = this.totalTime.AddSeconds(1);
}
private void button1_Click(object sender, EventArgs e)
{
this.timer1.Stop();
MessageBox.Show(this.totalTime.ToString());
}
and thats it!