Compare commits
1
Commits
fix-colons
...
timer
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a46c855960 |
No files matched your search
@@ -1,5 +1,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"./timer"
|
||||
"fmt"
|
||||
"strings"
|
||||
"regexp"
|
||||
@@ -16,6 +18,7 @@ func main() {
|
||||
// and then converted byte by byte (2 char at a time)
|
||||
//fmt.Println(convert_address(reverse_string(reverse_bytes("0100007F"))))
|
||||
|
||||
timer.New()
|
||||
tcp_rows(read_tcp_file("/proc/net/tcp"))
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
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
|
||||
}
|
||||
Reference in new issue
Block a user