Thread: C Program to record timestamp

  1. #1
    Registered User
    Join Date
    Jul 2016
    Posts
    1

    C Program to record timestamp

    Hi,

    I want to anlalyze execution time of a C program. For that I need to record the timestamp before the code is executed and after the code is executed. The program I am analyzing is TinyAES-128 bit.

    Can anyone help me in providing the code, which I can use to capture time. It will be really helpful.

    Thanks,
    P

  2. #2
    Registered User rstanley's Avatar
    Join Date
    Jun 2014
    Location
    New York, NY
    Posts
    1,110
    No need to write a C program to time a separate program. Under Linux you can invoke it from the command line with time.
    Code:
    $ time program-name
    There may be a comparable app under Windows.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Health record program
    By sly1234 in forum C Programming
    Replies: 2
    Last Post: 04-16-2013, 05:17 PM
  2. Student record program
    By mugiwara528 in forum C Programming
    Replies: 1
    Last Post: 03-14-2011, 06:27 PM
  3. Update Record & Delete Record in File.
    By unsafe_pilot1 in forum C Programming
    Replies: 13
    Last Post: 05-18-2008, 07:22 AM
  4. How do you make your program record keystrokes
    By aaroroge in forum C++ Programming
    Replies: 1
    Last Post: 06-25-2005, 06:55 AM
  5. Program won't save a record
    By Delboy in forum C Programming
    Replies: 6
    Last Post: 02-10-2002, 06:50 AM

Tags for this Thread