Skip to content

Commit cdd2db0

Browse files
committed
Log start,end and elapsed time
Signed-off-by: Richard Nixon <[email protected]>
1 parent 0c2a37b commit cdd2db0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: main.go

+6
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"os/exec"
77
"path/filepath"
88
"strings"
9+
"time"
910
)
1011

1112
func cloneOrSyncGitRepo(repoDir, cloneUrl, mainBranch string) {
@@ -123,6 +124,11 @@ func checkErr(err error) {
123124
}
124125

125126
func main() {
127+
startTime := time.Now()
128+
fmt.Printf("Starting BitSync process at %v\n", startTime)
126129
processGitHubOrgs()
127130
processBitBucketWorkspaces()
131+
endTime := time.Now()
132+
fmt.Printf("Finished BitSync process at %v\n", endTime)
133+
fmt.Printf("Elapsed time %v\n", endTime.Sub(startTime))
128134
}

0 commit comments

Comments
 (0)