You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
259 B
22 lines
259 B
4 years ago
|
package timer
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"time"
|
||
|
//"reflect"
|
||
|
)
|
||
|
|
||
|
func New() {
|
||
|
|
||
|
timer_10s := time.NewTimer(10 * time.Second)
|
||
|
// timer_1m := time.NewTimer(1 * time.Minute)
|
||
|
fmt.Println("Waiting 10 seconds...")
|
||
|
<-timer_10s.C
|
||
|
|
||
|
|
||
|
|
||
|
// for elapsed < ten_seconds {
|
||
|
//}
|
||
|
// for
|
||
|
}
|