Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4112949
ve.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
816 B
Referenced Files
None
Subscribers
None
ve.js
View Options
/*!
* VisualEditor namespace.
*
* @copyright See AUTHORS.txt
*/
/**
* Namespace for all VisualEditor classes, static methods and static properties.
*
* @namespace ve
*/
window
.
ve
=
{};
/**
* Get the current time, measured in milliseconds since January 1, 1970 (UTC).
*
* @return {number} Current time, monotonic in modern browsers (via Performance Timeline API)
*/
ve
.
now
=
function
()
{
// Based on `mw.now` in MediaWiki core.
// Optimisation: Cache and re-use the chosen implementation.
// Optimisation: Avoid startup overhead by re-defining on first call instead of IIFE.
const
perf
=
window
.
performance
;
const
navStart
=
perf
&&
perf
.
timing
&&
perf
.
timing
.
navigationStart
;
ve
.
now
=
navStart
&&
perf
.
now
?
function
()
{
return
navStart
+
perf
.
now
();
}
:
Date
.
now
;
return
ve
.
now
();
};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Aug 18, 23:07 (1 d, 4 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
9c/08/c00666bfd0d0b6db279ceda1fdac
Default Alt Text
ve.js (816 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment