일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- imread
- CNN
- E-P1
- Lotto
- Button
- pycharm
- install
- index
- dataframe
- keras
- pandas
- LSTM
- SciPy
- 삼성소프트웨어멤버십
- pip
- RNN
- 알고리즘
- GT-S80
- synology
- Numpy
- SPL
- Splunk
- javascript
- Series
- mariadb
- GitHub
- Python
- mean
- ipad
- DFS
- Today
- Total
잠토의 잠망경
학교 강의 내용 3st 본문
using System;
using System.Timers;
class SetTimer
{
static void Main()
{
Timer tmr = new Timer();
/*************************************
*
* tmr event에 timerTickhandler를 추가
*
* ***********************************/
tmr.Elapsed += TimerTickHandler;
tmr.Interval = 1000;
tmr.Enabled = true;
/*************************************
*
* tmr event에 timerTickhandler를 제거
*
* ***********************************/
Console.ReadLine();
tmr.Elapsed -= TimerTickHandler;
}
static void TimerTickHandler(object sender, ElapsedEventArgs args)
{
Console.Write("\r{0} ", args.SignalTime.ToLongTimeString());
}
}