--- title: "clock Function (C) | Microsoft Docs" ms.custom: "" ms.date: "11/04/2016" ms.reviewer: "" ms.suite: "" ms.technology: - "cpp-language" ms.tgt_pltfrm: "" ms.topic: "article" dev_langs: - "C++" helpviewer_keywords: - "clock function" ms.assetid: 4e66b721-850e-4e62-906a-72e42060c93d caps.latest.revision: 6 author: "mikeblome" ms.author: "mblome" manager: "ghogen" translation.priority.ht: - "cs-cz" - "de-de" - "es-es" - "fr-fr" - "it-it" - "ja-jp" - "ko-kr" - "pl-pl" - "pt-br" - "ru-ru" - "tr-tr" - "zh-cn" - "zh-tw" --- # clock Function (C) **ANSI 4.12.2.1** The era for the `clock` function The `clock` function's era begins (with a value of 0) when the C program starts to execute. It returns times measured in 1/**CLOCKS_PER_SEC** (which equals 1/1000 for Microsoft C). ## See Also [Library Functions](../c-language/library-functions.md)