summaryrefslogtreecommitdiff
path: root/js/performance.ts
diff options
context:
space:
mode:
Diffstat (limited to 'js/performance.ts')
-rw-r--r--js/performance.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/js/performance.ts b/js/performance.ts
index b4d0fa43b..1af75809b 100644
--- a/js/performance.ts
+++ b/js/performance.ts
@@ -18,8 +18,7 @@ export class Performance {
*/
now(): number {
const builder = flatbuffers.createBuilder();
- msg.Now.startNow(builder);
- const inner = msg.Now.endNow(builder);
+ const inner = msg.Now.createNow(builder);
const baseRes = sendSync(builder, msg.Any.Now, inner)!;
assert(msg.Any.NowRes === baseRes.innerType());
const res = new msg.NowRes();