--- description: "Learn more about: clock Function (C)" title: "clock Function (C)" ms.date: "11/04/2016" helpviewer_keywords: ["clock function"] ms.assetid: 4e66b721-850e-4e62-906a-72e42060c93d --- # 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)