diff options
Diffstat (limited to 'js/src/Ice/TimeUtil.js')
-rw-r--r-- | js/src/Ice/TimeUtil.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/js/src/Ice/TimeUtil.js b/js/src/Ice/TimeUtil.js new file mode 100644 index 00000000000..ad152cd7f09 --- /dev/null +++ b/js/src/Ice/TimeUtil.js @@ -0,0 +1,19 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved. +// +// This copy of Ice is licensed to you under the terms described in the +// ICE_LICENSE file included in this distribution. +// +// ********************************************************************** + +(function(global){ + var Ice = global.Ice || {}; + var TimeUtil = {}; + TimeUtil.now = function() + { + return new Date().getTime(); + }; + Ice.TimeUtil = TimeUtil; + global.Ice = Ice; +}(typeof (global) === "undefined" ? window : global)); |