projects
/
app.Builder.js
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d603cf2
)
File.js
author
Alan Knowles
<alan@akbkhome.com>
Fri, 29 Oct 2010 07:55:38 +0000
(15:55 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Fri, 29 Oct 2010 07:55:38 +0000
(15:55 +0800)
File.js
patch
|
blob
|
history
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