96 SUCCESS tests complet
This commit is contained in:
@@ -21,8 +21,17 @@ export function cloneNode(node: BookmarkNode): BookmarkNode {
|
||||
/**
|
||||
* Generate a unique ctime (milliseconds timestamp)
|
||||
*/
|
||||
let lastGeneratedCtime = 0;
|
||||
|
||||
export function generateCtime(): number {
|
||||
return Date.now();
|
||||
const now = Date.now();
|
||||
if (now <= lastGeneratedCtime) {
|
||||
lastGeneratedCtime += 1;
|
||||
return lastGeneratedCtime;
|
||||
}
|
||||
|
||||
lastGeneratedCtime = now;
|
||||
return lastGeneratedCtime;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user