Skip to content

Commit 892f070

Browse files
committed
added in time_ms
1 parent 9ea2829 commit 892f070

File tree

4 files changed

+22
-1
lines changed

4 files changed

+22
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@
44
.python-version
55
bin/task
66
Brewfile.lock.json
7+
8+
/tools/time_ms/time_ms

tools/time_ms/go.mod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module go.vardan.dev/time_ns
2+
3+
go 1.21.9

tools/time_ms/main.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package main
2+
3+
import (
4+
"fmt"
5+
"runtime"
6+
"runtime/debug"
7+
"time"
8+
)
9+
10+
func main() {
11+
debug.SetGCPercent(-1)
12+
runtime.GOMAXPROCS(1)
13+
14+
now := time.Now()
15+
fmt.Println(now.Format("2006-01-02 15:04:05.000"))
16+
}

vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
//
105105
"workbench.editor.closeOnFileDelete": true,
106106
"workbench.editor.revealIfOpen": true,
107-
"workbench.iconTheme": "catppuccin-frappe",
107+
"workbench.iconTheme": "catppuccin-latte",
108108
"workbench.list.openMode": "singleClick",
109109
"workbench.preferredDarkColorTheme": "Catppuccin Frappé",
110110
"workbench.preferredLightColorTheme": "Catppuccin Latte",

0 commit comments

Comments
 (0)