You can use the clock
method in time.h
Example:
clock_t start = clock();
/*Do something*/
clock_t end = clock();
float seconds = (float)(end - start) / CLOCKS_PER_SEC;
More Related Contents:
- How to list physical disks?
- Safely remove a USB drive using the Win32 API?
- How to get name associated with open HANDLE
- How to copy string to clipboard in C?
- Save HBITMAP to *.bmp file using only Win32
- How to check if a pointer is valid? [duplicate]
- How to obtain the correct physical size of the monitor?
- winapi: CreateProcess but hide the process’ window?
- Winapi: Get the process which has specific handle of a file
- Can multithreading be implemented on a single processor system?
- How do you check if a directory exists on Windows in C?
- How can I read a child process’s output?
- How to get main window handle from process id?
- clock_gettime alternative in Mac OS X
- C – create file in memory
- Sharing memory between two processes (C, Windows)
- Can I use CreateFile, but force the handle into a std::ofstream?
- Embedding HWND into external process using SetParent
- Using sys/socket.h functions on windows
- Calculating elapsed time in a C program in milliseconds
- WinVerifyTrust to check for a specific signature?
- How to kill processes by name? (Win32 API)
- error C4996: ‘scanf’: This function or variable may be unsafe in c programming
- Check the file-size without opening file in C++?
- Why does my compiler not accept fork(), despite my inclusion of ?
- Win32: How to hide 3rd party windows in taskbar by hWnd
- Get selected items of folder with WinAPI
- Why does the Win32-API have so many custom types?
- CreateDesktop() with vista and UAC on (C, windows)
- How do I get the file HANDLE from the fopen FILE structure?