-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
zhangbiao
committed
Jan 13, 2020
1 parent
e4a7944
commit c9a67ab
Showing
6 changed files
with
17 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,16 @@ | ||
package test | ||
|
||
import ( | ||
"github.com/gogf/gf/os/gtime" | ||
"github.com/gogf/gf/util/gconv" | ||
"testing" | ||
"time" | ||
) | ||
|
||
func TestTime(t *testing.T) { | ||
t.Log("time test ") | ||
time1 := gtime.Now().Millisecond() | ||
time.Sleep(time.Second) | ||
time2 := gtime.Now().Millisecond() | ||
if time2-time1 < 1000 { | ||
t.Error("time error:" + gconv.String(time2-time1)) | ||
} | ||
//time1 := gtime.Now().Microsecond() | ||
//time.Sleep(time.Second * 2) | ||
//time2 := gtime.Now().Microsecond() | ||
//if time2-time1 < 1 { | ||
// t.Error("time error:" + gconv.String(time2-time1)) | ||
//} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
module github.com/goflyfox/gtoken | ||
|
||
require ( | ||
github.com/gogf/gf v1.10.1 | ||
google.golang.org/appengine v1.6.5 // indirect | ||
) | ||
require github.com/gogf/gf v1.11.2 | ||
|
||
go 1.13 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters