cgserver 6.2.10 → 6.2.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,6 +8,7 @@ class Response {
8
8
  _res = null;
9
9
  _cookie_prefix = "";
10
10
  _cfg = null;
11
+ _create_time = -1;
11
12
  constructor(res, cfg) {
12
13
  this._cfg = cfg;
13
14
  this._res = res;
@@ -15,6 +16,7 @@ class Response {
15
16
  this._init();
16
17
  }
17
18
  _init() {
19
+ this._create_time = Date.now();
18
20
  }
19
21
  /**
20
22
  *
@@ -91,6 +93,7 @@ class Response {
91
93
  if (!this._cfg.debug) {
92
94
  return;
93
95
  }
96
+ Log_1.GLog.info("dttime:" + (Date.now() - this._create_time).toLocaleString() + "ms", true);
94
97
  Log_1.GLog.info(data, true);
95
98
  }
96
99
  }
@@ -4,6 +4,7 @@ export declare class Response {
4
4
  protected _res: Express.Response;
5
5
  protected _cookie_prefix: string;
6
6
  protected _cfg: WebServerConfig;
7
+ protected _create_time: number;
7
8
  constructor(res: Express.Response, cfg: WebServerConfig);
8
9
  protected _init(): void;
9
10
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cgserver",
3
- "version": "6.2.10",
3
+ "version": "6.2.11",
4
4
  "author": "trojan",
5
5
  "type": "commonjs",
6
6
  "description": "free for all.Websocket or Http",