int result;
time_t timestamp; // Timestamp of type time_t
tm *nun; // We need a variable of the structure tm to access the individual member
// Calculation of the algorithm //
timestamp = time( 0 ); // Total number of seconds since 1979 !
nun = localtime( ×tamp ); // Calculation of the current time by the total number of seconds
result = 1000;
result = nun->tm_sec / 3; // first calculation of the algorithm
while( result > 3 ){
result/=3; // calculated it until result is a maximum of 3 !
// 3 is only a Example !!! //
}
int result;
time_t timestamp; // Timestamp of type time_t
tm *nun; // We need a variable of the structure tm to access the individual member
// Calculation of the algorithm //
timestamp = time( 0 ); // Total number of seconds since 1979 !
nun = localtime( ×tamp ); // Calculation of the current time by the total number of seconds
result = 1000;
result = nun->tm_sec / 3; // first calculation of the algorithm
while( result > 3 ){
result/=3; // calculated it until result is a maximum of 3 !
// 3 is only a Example !!! //
}
int result;
time_t timestamp; // Timestamp of type time_t
tm *nun; // We need a variable of the structure tm to access the individual member
// Calculation of the algorithm //
timestamp = time( 0 ); // Total number of seconds since 1979 !
nun = localtime( ×tamp ); // Calculation of the current time by the total number of seconds
result = 1000;
result = nun->tm_sec / 3; // first calculation of the algorithm
while( result > 3 ){
result/=3; // calculated it until result is a maximum of 3 !
// 3 is only a Example !!! //
}
Copyright © 2024, NextGenUpdate.
All Rights Reserved.