Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uptime of the go process itself #13

Open
rogierlommers opened this issue May 20, 2015 · 2 comments
Open

Uptime of the go process itself #13

rogierlommers opened this issue May 20, 2015 · 2 comments

Comments

@rogierlommers
Copy link

Any idea how to get the uptime from the Go process itself without wrapping an exec command?

@mindreframer
Copy link
Owner

honestly: no idea. I see that found this repo by googling "golang uptime", that's funny :P (https://github.com/mindreframer/golang-stuff/blob/master/github.com/jondot/gosigar/examples/uptime.go)
What is the problem with exec command? If you're not spawning hundreds of them, it should be fine, not?

@rogierlommers
Copy link
Author

Thanks for the link; the package get's the global uptime of the system. I'm interested in the uptime of a specific golang process. The exec command isn't that bad, but to be fully platform independent (running on Windows), we need a better solution, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants