This commit is contained in:
didier amyot committed 2023-09-22 14:27:46 -04:00
1 parent 603130b219
commit 7ab6413484
1 file changed
+18
+18
View File
@@ -0,0 +1,18 @@
let websites = [
"https://google.com",
"https://lapresse.ca",
"https://theguardian.com"
];
function computeTimeToLoad(url: string): number{
return 98;
}
function computeAllLoadTime(websites: string[]): Map<string, number>{
let ret = new Map<string, number>();
for(let website of websites){
ret.set(website, computeTimeToLoad(website));
}
return ret;
}