FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
ReoScript/Source/ReoScript/scripts/debug.reo at master · unvell/ReoScript · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
unvell
/
ReoScript
Public
Notifications
You must be signed in to change notification settings
Fork
35
Star
109
Code
Issues
4
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
ReoScript
/
Source
/
ReoScript
/
scripts
/
debug.reo
Copy path
More file actions
More file actions
Latest commit
History
History
History
51 lines (42 loc) · 1.25 KB
Breadcrumbs
ReoScript
/
Source
/
ReoScript
/
scripts
/
debug.reo
Copy path
File metadata and controls
51 lines (42 loc) · 1.25 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*****************************************************************************
*
* ReoScript - .NET Script Language Engine
*
* https://github.com/unvell/ReoScript
*
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
* KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
* PURPOSE.
*
* This software released under MIT license.
* Copyright (c) 2012-2019 Jingwood, unvell.com, all rights reserved.
*
****************************************************************************/
if (debug != null) {
/* Stopwatch */
debug.Stopwatch = function() {
this.startTime = null;
this.endTime = null;
};
debug.Stopwatch.startNew = function() {
var sw = new debug.Stopwatch();
sw.start();
return sw;
};
debug.Stopwatch.prototype.start = function() {
if (this.startTime == null) {
this.startTime = new Date();
}
this.endTime = null;
};
debug.Stopwatch.prototype.stop = function() {
this.endTime = new Date();
this.elapsed = this.endTime - this.startTime;
};
debug.Stopwatch.prototype.restart = function() {
this.startTime = new Date();
this.endTime = null;
};
/* End of Stopwatch */
}
Back
|
FazBrowse Home
|
New Git URL