Add process.startTime

This commit is contained in:
Ryan Dahl
2010-02-12 00:47:35 -08:00
parent bc17d94a0a
commit 896cef23c4
2 changed files with 4 additions and 0 deletions

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
+

View File

@@ -1,4 +1,5 @@
(function (process) {
process.startTime = new Date();
process.global.process = process;
process.global.global = process.global;