Add process.startTime

This commit is contained in:
Ryan Dahl committed 2010-02-12 00:47:35 -08:00
1 parent bc17d94a0a
commit 896cef23c4
2 files changed
+4

No files matched your search

+3
View File
@@ -112,6 +112,9 @@ The PID of the process.
+process.platform+ ::
What platform you're running on. +"linux2"+, +"darwin"+, etc.
+process.startTime+ ::
When the process started.
+process.memoryUsage()+ ::
Returns the memory usage of the Node process. It looks like this
+
+1
View File
@@ -1,4 +1,5 @@
(function (process) {
process.startTime = new Date();
process.global.process = process;
process.global.global = process.global;