-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4e49f64
commit cef917e
Showing
5 changed files
with
65 additions
and
4 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "tarantoolscript", | ||
"version": "0.7.1", | ||
"version": "0.8.0", | ||
"author": "Vitaliy Artemov [email protected]", | ||
"description": "TypeScript definitions for Tarantool Lua API.", | ||
"repository": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
/** @noSelfInFile */ | ||
|
||
import { CData } from 'builtin/box'; | ||
|
||
/** | ||
* Get the wall clock time in seconds. | ||
*/ | ||
export declare function time(): number; | ||
|
||
/** | ||
* Get the wall clock time in seconds. | ||
*/ | ||
export declare function realtime(): number; | ||
|
||
/** | ||
* Get the wall clock time in nanoseconds. | ||
*/ | ||
export declare function time64(): CData; | ||
|
||
/** | ||
* Get the wall clock time in nanoseconds. | ||
*/ | ||
export declare function realtime64(): CData; | ||
|
||
/** | ||
* Get the monotonic time in seconds. | ||
*/ | ||
export declare function monotonic(): number; | ||
|
||
/** | ||
* Get the monotonic time in nanoseconds. | ||
*/ | ||
export declare function monotonic64(): CData; | ||
|
||
/** | ||
* Get the processor time in seconds. | ||
*/ | ||
export declare function proc(): number; | ||
|
||
/** | ||
* Get the processor time in nanoseconds. | ||
*/ | ||
export declare function proc64(): CData; | ||
|
||
/** | ||
* Get the thread time in seconds. | ||
*/ | ||
export declare function thread(): number; | ||
|
||
/** | ||
* Get the thread time in nanoseconds. | ||
*/ | ||
export declare function thread64(): CData; | ||
|
||
/** | ||
* Measure the time a function takes within a processor. | ||
* @param func Function or function reference. | ||
* @param args Whatever values are required by the function. | ||
* @returns Table. First element – seconds of CPU time, second element – whatever the function returns. | ||
*/ | ||
export declare function bench<T, U extends unknown[]>(func: (...args: U) => T, ...args: U): [number, T]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './builtin/clock/Clock'; |