File.js
authorAlan Knowles <alan@akbkhome.com>
Fri, 29 Oct 2010 07:55:38 +0000 (15:55 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 29 Oct 2010 07:55:38 +0000 (15:55 +0800)
File.js

diff --git a/File.js b/File.js
index 2a7ab50..4c98468 100644 (file)
--- a/File.js
+++ b/File.js
@@ -107,10 +107,13 @@ var File = {
      * 
      */
     write : function (path, string) {
+        var d = new Date();
         var f = Gio.file_new_for_path(String(path));
         var data_out = new Gio.DataOutputStream({base_stream:f.replace(null, false, Gio.FileCreateFlags.NONE, null)});
         data_out.put_string(string, null);
         data_out.close(null);
+        print("WRITE : " + path + " in " + ((new Date()) - d) + 'ms');
+        
     },
     /**
      * append