Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9157209
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:57:29+00:00 2026-06-17T12:57:29+00:00

Here is my code: float timeInterval = 1 / [frameRateTextField floatValue]; recordingTimer = [NSTimer

  • 0

Here is my code:

float timeInterval = 1 / [frameRateTextField floatValue];

        recordingTimer = [NSTimer scheduledTimerWithTimeInterval:timeInterval
                                                          target:self
                                                        selector:@selector(recordingTimerSelector:)
                                                        userInfo:nil
                                                         repeats:YES];


- (void) recordingTimerSelector:(NSTimer*)timer{
    NSXMLElement *timecode = [[NSXMLElement alloc] initWithName:@"timecode"];
    [timecode setStringValue:[NSString stringWithFormat:@"%@,%@,%@,%@,%@",[DMXChannelArray objectAtIndex:0], [DMXChannelArray objectAtIndex:1], [DMXChannelArray objectAtIndex:2], [DMXChannelArray objectAtIndex:3], [DMXChannelArray objectAtIndex:4]]];

    [root addChild:timecode];

    time = time + 1;
    [theRecordingTime setStringValue:[NSString stringWithFormat:@"%d", time]];
}

Is this the best way to go about doing this? I’m basically making a “recorder” with a resolution of 30FPS. Is there a way to make it go with the actual time, instead of being a separate entity? It might make it more accurate. Like:

10:40:41.0 - record element
10:40:41.3 - record element
10:40:41.6 - record element

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T12:57:30+00:00Added an answer on June 17, 2026 at 12:57 pm

    You can get the current number of seconds since the reference date by asking NSDate for it.

    Get that time interval when you start your timer, and then every time it fires, and subtract the starting time interval from the current one to get the number of seconds since you started.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is the code: float charlieSoundVolume; charlieSoundVolume = [charlieSoundLevel floatValue]; NSRunAlertPanel(@CHARLIE,charlieSoundVolume, @, @, @Ok);
Something like this: _declspec(align(16)) float dens[4]; //Here the code comes. F32vec4 S_START, Pos, _Vector
Here is my code float cpuLoad = 0; try{ MessageBox.Show(Running); //CPU Load PerformanceCounter cpuCounter
From this article. Here's the code: float InvSqrt(float x){ // line 0 float xhalf
I'm trying to draw a dashed line with CGContextSetLineDash . Here's my code: float
here is some C code: float phaseFrac(unsigned int inPhase) { union { unsigned int
Here's my code: float result; result = 1.0 + 1/2; NSLog(@Result = %f, result);
Here is my code snippet: float ab(float); and later if(ab(temp)<ab(a[r][c])) { do something; }
Here's the code snippet: float pNum = 9.2; char* l_tmpCh = new char[255]; sprintf_s(l_tmpCh,
here is my snippet of code: float square_root(x) float x; { ....... } int

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.