diff options
Diffstat (limited to '_site/includes/articles/getlist.php')
-rw-r--r-- | _site/includes/articles/getlist.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/_site/includes/articles/getlist.php b/_site/includes/articles/getlist.php index 5f55574..e3947f2 100644 --- a/_site/includes/articles/getlist.php +++ b/_site/includes/articles/getlist.php @@ -1,7 +1,11 @@ <?php +$listGetTimeout = 0; + function getArticlesList() { + $listGetStart = new DateTime("now"); global $Parsedown; + global $listGetTimeout; $list = []; $files = scandir($_SERVER['DOCUMENT_ROOT'] . "/../_posts"); @@ -82,5 +86,10 @@ function getArticlesList() { } } + $listGetEnd = new DateTime("now"); + + $listGetTimeoutA = $listGetStart->diff($listGetEnd); + $listGetTimeout = $listGetTimeoutA->f; + return $list; }
\ No newline at end of file |